Class dependency error occurred on aspect definition 'Aspect definition advise type [after] advise [org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke]' while processing bean Check if builder classpath is complete.

Gambar kulit buku Spring oleh Craig Walls



Solution:

Here's a workaround. Right click the project and go to
"Properties >> Spring"
Select the "Enable Project Specific settings" checkbox.
Go to "Project Builders" tab and disable "AOP Reference Model Builder".
My guess is that the AOP reference model builder is running into references to types that a regular compile would not visit, and these types are not on the project classpath, causing that error.