Could anyone please tell me why the aspect won't fire when using spring boot? I am trying to setup load time weaving with aspectj so that I can have private methods advised.
Here is the link to the barebones project - https://github.com/satb/spring_aop_test_project.git
Run the "App" class with "-javaagent:path/to/spring-instrument-4.1.0.RELEASE.jar" (or some other version of the lib on your computer) and run the curl command
curl -i http://localhost:8080/test-app/motd
The MyAspect class has an advice that should execute when the private method of MyService is called. But in this case, nothing happens.
When the application starts though, I see a message like this:
[AppClassLoader@58644d46] warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified.
I tried following the suggestion from here to get it to work but that didn't help - Using @Autowired with AspectJ and Springboot