Spring AOP - why do i need aspectjweaver?

前端 未结 5 1499
无人及你
无人及你 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:07

    You are using AspectJ style pointcut-expression @Aspect and @Before are part of AspectJ. Check this link.

    Regarding the AspectJ-weaver, its actually a bytecode weaver which weaves aspects into classes at load time.

提交回复
热议问题