Spring AOP - why do i need aspectjweaver?

前端 未结 5 1505
无人及你
无人及你 2020-12-13 06:25

i wrote a very simple Aspect with Spring AOP. It works, but i have some problems understanding what is really going on. I don\'t understand why i have to add the aspectjweav

5条回答
  •  心在旅途
    2020-12-13 07:12

    Spring AOP implementation I think is reusing some classes from the aspectj-weaver. It still uses dynamic proxies - doesn't do byte code modification.

    The following comment from the spring forum might clarify.

    Spring isn't using the AspectJ weaver in this case. It is simply reusing some of the classes from aspectjweaver.jar.

    -Ramnivas

提交回复
热议问题