How can Spring AspectJ weaving work without the -javaagent vm option?

前端 未结 2 1368
长情又很酷
长情又很酷 2021-02-06 16:23

I understand Spring avoids using the -javaagent vm option in order to get its AspectJ load time weaving to work and relies instead on a classloader to start the age

2条回答
  •  深忆病人
    2021-02-06 16:44

    Here a library that initializes aspectj and spring-aspects at runtime by injecting instrumentation: https://github.com/subes/invesdwin-instrument

    So no more need for explicit -javaagent argument.

提交回复
热议问题