Difference between Spring AOP and AspectJ AOP

SpringObject Oriented ProgrammingProgramming

Sr. No.KeySpring AOPAspectJ AOP
1
Basic
It is a simple implementation of AOP technology. It can be applied only the beans.
It is a complete implementation of the AOP technology in Java. It can be applied in any java class.
2
Design Pattern  
It uses the proxy pattern so aspects are applied on proxies object
It doesn't use proxy pattern aspects are directly applied on the code.
3
PontCuts
It supports only method level points cuts
No Restriction
4
Weaving of Aspects
The weaving of Aspects will be performed by the container at container start-up 
Weaving of aspect can perform with a post compilation of your code through bytecode modification
5
Nested Method
Aspects can’t be applied when calling another method within the same class
Aspects can be applied when calling another method within the same class


raja
Published on 09-Sep-2020 12:30:40
Advertisements