1.在启动类中加入注解@EnableAspectJAutoProxy(exposeProxy=true)2.强制开启代理((UserServiceImpl) AopContext.currentProxy()).addUser(user);