在启动类,加上: @EnableTransactionManagement(proxyTargetClass = true) 转载于:https://www.cnblogs.com/luoa/p/10544810.html