方式一
@Autowired
ApplicationContext applicationContext;
applicationContext.getBean(接口类.class)
方式二
(xxx) AopContext.currentProxy();
注意方式二
Cannot find current proxy: Set ‘exposeProxy’ property on Advised to ‘true’ to make it available.
添加:@EnableAspectJAutoProxy(exposeProxy = true)