这里以控制层做示范 @PostMapping("/Maintenance") @ResponseBody @Transactional(rollbackFor = Exception.class) //事务回滚需要的注解 public BaseResponse Maintenance(@RequestBody Map map) throws E