Why Spring AOP is not weaving external jars at runtime?

前端 未结 6 936
醉话见心
醉话见心 2020-12-29 14:46

I have a java application build upon Spring 3. This project has another jar as a dependency.

This dependency contains a @org.aspectj.lang.annotation.Aspect

6条回答
  •  自闭症患者
    2020-12-29 15:03

    I have the same problem. I solved this problem packaging with maven. Check the aspectj-maven-plugin and option weaveDependency

    http://mojo.codehaus.org/aspectj-maven-plugin/weaveJars.html

提交回复
热议问题