
解决方案
右键单击项目,选择Configure build path->Add External Jars:
将这三个jar加到Build Path里:
错误消失:
aspectjrt.jar:The runtime needed to execute a program using AspectJ. 基于AspectJ库的应用运行时必须的运行库。
下载地址:
https://mvnrepository.com/artifact/org.aspectj/aspectjrt/1.6.9aspectjweaver.jar: The AspectJ weaver introduces advices to java classes,给Java类引入对advices的支持
https://mvnrepository.com/artifact/org.aspectj/aspectjweaveraopalliance.jar: The AOP Alliance aims to ensure interoperability between Java/J2EE AOP implementations to build a larger AOP community.
https://sourceforge.net/projects/aopalliance/