问题
As of version 4 of Spring, these are the jars needed to use Spring AOP:
aopalliance.jar
aspectjrt.jar
aspectjweaver.jar
cglib-nodep-2.1_3.jar
spring-aop-4.0.0.M2.jar
But for version 5, what are the jars needed other than
spring-aop-5.0.2.RELEASE.jar
spring-aspects-5.0.2.RELEASE.jar
And where do I find them?
回答1:
Following are the minimum set of dependencies that I required to run an annotations based Spring applciation
- spring-context-5.2.2.RELEASE.jar
- spring-beans-5.2.2.RELEASE.jar
- spring-expression-5.2.2.RELEASE.jar
- spring-core-5.2.2.RELEASE.jar
- spring-aop-5.2.2.RELEASE.jar
- spring-jcl-5.2.2.RELEASE.jar
and additional dependency for Spring AOP
- aspectjweaver-1.9.5.jar
You may download the entire spring distribution based on the release from here or from any maven repository by searching with individual jar name.
来源:https://stackoverflow.com/questions/59860880/what-jars-do-i-need-for-spring-aop-for-version-5