摘要: 因为this是当前对象的实际对象,而事务只能在代理对象上起作用。因为spring的里面的对象都是经过spring代理的代理对象。通过代理模式,spring可以对对象进行增强。 @Servicepublic class UserServiceImpl implements UserService { 阅读全文
posted @ 2025-03-09 13:54 人在代码在 阅读(52) 评论(0) 推荐(0)