如果 XML 配置中没有 <aop:aspectj-autoproxy/> 元素,则在早于 2.5 的 Spring 版本中报告 @Aspect 注解。
@Aspect
示例:
@Aspect // '未启用 @AspectJ 支持 class MyAspect { ... } <beans> <!-- <aop:aspectj-autoproxy/> --> </beans>