After updating SpringDoc to version 2.8.0, my Spring Boot application fails to start with the following error:
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springdoc.webmvc.ui.SwaggerConfig]
from ClassLoader [org.springframework.boot.loader.launch.LaunchedClassLoader]
Dependency in pom.xml:
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.8.0</version>
</dependency>
Has anyone faced this issue? How can I resolve it?
When checking the SpringDoc compatibility matrix https://springdoc.org/#what-is-the-compatibility-matrix-of-springdoc-openapi-with-spring-boot
I noticed that Springdoc 2.8.0
requires Spring Boot 3.4.x
I resolved the issue by downgrading SpringDoc to version 2.3.x, which is compatible with my current Spring Boot version.