latest springfox-swagger2 + springfox-swagger-ui throws class not found exception
See original GitHub issue- What version of the library are you using? Is it the latest version?
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.8.0</version>
</dependency>
What kind of issue is this? Bug report
I use Spring Boot 2.0.1.RELEASE + Jersey (spring-boot-starter-jersey).
The application works fine but after I add @EnableSwagger2 annotation to Application.java I get a java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerMapping
exception.
Demo project to demonstrate the issue: https://github.com/zappee/swagger-bug
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Caused by: java.lang.ClassNotFoundException: springfox ...
I got 4.3 paragraph in the tutorial above and when I run my application, I got some errors. This I added to my...
Read more >I can't run any version of swagger-fox. Spring Boot 2.4.2 + JDK ...
Removing version tag from springfox-swagger2 & springfox-swagger-ui dependencies ... Spring Boot fails to run maven-surefire-plugin ClassNotFoundException ...
Read more >How to fix java.lang. ClassNotFoundException: org ... - Crunchify
I have been running Spring MVC projects since last ~8 years and ... How to fix ClassNotFoundException org.springframework.web.servlet.
Read more >Caused By: Java.Lang.Classnotfoundexception - ADocLib
6 springstarterhateoas and springfox swagger2 and swagger UI . Docket; import springfox.documentation.swagger2.annotations. Files\Java\jdk1.8.0171\jre\lib\ ...
Read more >Springfox Reference Documentation - GitHub Pages
Specifically remove springfox-swagger2 and springfox-swagger-ui ... protected void configure(HttpSecurity http) throws Exception { http.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same issue. with springfox 2.9.2
Spring boot 2.x isnt officially supported yet. But thanks for reporting this issue.