您的位置: 首页 > IT文章 > @Aspect注解并不属于@Component的一种 @Aspect注解并不属于@Component的一种 分类: IT文章 • 2023-11-23 16:48:19 也就是一个类单纯如果只添加了@Aspect注解,那么它并不能被context:component-scan标签扫描到。 想要被扫描到的话,需要追加一个@Component注解