问题描述
我写了一个小的SpringBoot应用程序来测试AspectJ;
我在pom内部的依赖项是spring-boot-starter-web,spring-boot-starter-tomcat,Aspectjweaver和spring-boot-starter-test;我创建一个自定义批注(@Performance)和一个用@AspectJ和@Configuration批注的类;在此类中,我具有@Around(“ @ annotation(Performance)”)方法。一切正常:如果我将@Performance批注添加到方法中,则在调用该方法之前,将调用@Around方法。
问题1:即使我不添加@EnableAspectJAutoproxy(作为SpringBoot应用程序,我只有@SpringBootApplication批注),这怎么可能起作用?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)