I am upgrading my spring boot app (fro 1.x to 2.x). I am getting below exception while deploying the App in WAS server.
(SpringApplication.java.821) ---- Application run failed java.lang.illegalArgumentException: could not find the class [org.springframework.boot.autoconfigure.web.WebmvcAutoConfiguration] at org.springframework.util.ClassUtils.resolveClassName (ClassUtils.java:332)
I am upgrading to SpringBoot 2.1.6.RELEASE. Can anyone please help me on this.
Comment From: wilkinsona
The auto-configuration class has moved to a different package in Spring Boot 2.0. Its fully-qualified name is now org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
. You'll need to update your application code or another dependency that is referencing the class's Spring Boot 1.x location. If you require some help to do that, please follow up on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.
Comment From: gqzdev
I use springboot version is
java.lang.IllegalArgumentException: Could not find class [org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration]
Comment From: snicoll
@gqzdev please review the comment about yours and ask questions on StackOverflow.