@Aspect注解并不属于@Component的一种

也就是一个类单纯如果只添加了@Aspect注解,那么它并不能被context:component-scan标签扫描到。

 

想要被扫描到的话,需要追加一个@Component注解

 

posted @ 2018-01-07 15:38  Deolin  阅读(1987)  评论(0编辑  收藏  举报