0 votes
in Spring by

What is the difference between Spring AOP and AspectJ AOP?

1 Answer

0 votes
by

AspectJ is the industry-standard implementation for Aspect Oriented Programming whereas Spring implements AOP for some cases. Main differences between Spring AOP and AspectJ are:

Spring AOP is simpler to use than AspectJ because we don’t need to worry about the weaving process.

Spring AOP supports AspectJ annotations, so if you are familiar with AspectJ then working with Spring AOP is easier.

Spring AOP supports only proxy-based AOP, so it can be applied only to method execution join points. AspectJ support all kinds of pointcuts.

One of the shortcomings of Spring AOP is that it can be applied only to the beans created through Spring Context.

Related questions

+1 vote
asked Jun 2, 2020 in JAVA by Indian
0 votes
asked Jul 28, 2020 in Spring by sharadyadav1986
...