What jars do I need for Spring AOP for version 5

折月煮酒 提交于 2020-02-06 07:54:49

问题


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

  1. spring-context-5.2.2.RELEASE.jar
  2. spring-beans-5.2.2.RELEASE.jar
  3. spring-expression-5.2.2.RELEASE.jar
  4. spring-core-5.2.2.RELEASE.jar
  5. spring-aop-5.2.2.RELEASE.jar
  6. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!