I have a spring boot application with some REST controllers, service classes and helper classes. The controllers and service classes are spring managed while helper classes
Use -javaagent:/path/to/aspectjweaver-<version>.jar
as a startup argument to your JVM to enable load-time weaving. Remove @EnableAspectJAutoProxy
from your spring configuration so that spring doesn't try to use it's own Spring AOP framework instead of pure AspectJ. Optionally, create META-INF/aop.xml
. Add @EnableSpringConfigured
if you want to apply spring configuration to beans not managed by spring (@Configurable
POJOs).