java.lang.ClassNotFoundException: org.springframework.aop.config.AopConfigUtils

Viewed 81

Today when I start my app, shows error:

java.lang.ClassNotFoundException: org.springframework.aop.config.AopConfigUtils

I am check my project and found it already contains Gradle: org.springframework.boot:spring-boot-starter-aop:2.5.7 dependencies. what should I do to fix this problem? Should I add this class AopConfigUtils? I am sure I did not mix version because all the version management by the org.springframework.boot gradle plugin.

3 Answers

Check whether this JAR is present in the application classpath. ... If that JAR is already present in the classpath, make sure the classpath is not overridden.

And please check if you are not mixing the version.

Try alternative for mvn clean install. Clean cache in Intellij if previous command doesn’t help.

In maven version for spring boot starters are always skipped. Try remove version number from dependency.

Related