How to configure load-time weaving with AspectJ and Tomcat?

前端 未结 2 911
遇见更好的自我
遇见更好的自我 2021-02-06 06:00

I tried to configure load-time weaving (for doing profiling with Perf4J) in the next way:

1) I added aop.xml to META-INF folder. When deployed,

2条回答
  •  醉酒成梦
    2021-02-06 06:58

    I was trying to solve the same issue in Tomcat. In addition to -javaagent option, you need to make sure the aop.xml must be under the WEB-INF/classes/META-INF dir. This made the difference for me.

提交回复
热议问题