Spring AOP for non spring component

Spring AOP can only be applied to Spring-managed components/beans, not to non-Spring POJOs.

If you want to apply AOP to non-Spring classes you need AspectJ, not a proxy-based “AOP lite” framework like Spring AOP. For more information about how to use AspectJ (which does not need Spring at all) in combination with Spring and how to configure load-time weaving, please read the corresponding part of the Spring manual.

Leave a Comment