在spring boot jpa 中自定义sql,执行update操作报错解决办法: 在@Query(...)上添加 @Modifying@Transactional注解 转载于:https://www.cnblogs.com/SongG-blogs/p/9877409.html