Why Spring AOP is not weaving external jars at runtime?

前端 未结 6 937
醉话见心
醉话见心 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:09

    You might try aspectJ LTW instead of Spring AOP proxy. To do this add a aop.xml to your META-INF

    
    
        
            
            
        
        
            
            
        
    
    

    And this is the spring portion of the config:

    See here for details : http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/aop.html#aop-aj-ltw

提交回复
热议问题