Skip to content

Instantly share code, notes, and snippets.

@kojofosu
Created January 18, 2021 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kojofosu/e7189b46715c75b1e52214493c369f3b to your computer and use it in GitHub Desktop.
Save kojofosu/e7189b46715c75b1e52214493c369f3b to your computer and use it in GitHub Desktop.
[ERROR] Failed to introspect Class [springfox.documentation.swagger.readers.operation.SwaggerResponseMessageReader] from ClassLoader
<!--
java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerMapping means that you are missing a dependency in your pom.xml, to be precise you are missing spring-webmvc dependency.
As you are using Spring Boot, just add this dependency to your pom: -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
@kojofosu
Copy link
Author

java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerMapping means that you are missing a dependency in your pom.xml, to be precise you are missing spring-webmvc dependency.
As you are using Spring Boot, just add this dependency to your pom:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment