否则会遇到以下报错
报错信息:java.lang.IllegalStateException:Cannot find current proxy:Set 'exposeProxy' property on Advised to 'true' to make it available.
前提一
使用代理对象不能调用 private 方法,会导致 Spring IOC 注入的 Bean 为 null
应该调用 public 方法
前提二
如果类中没有使用过 AOP,没有 @Transactional 注解等,并不会自动生成该类的代理对象,此时使用 AopContext.currentProxy() 获取代理对象会有问题