Swagger UI does not work after passing from 2.9.2 to 3.0.0
See original GitHub issueAfter upgrading the version to the latest (3.0.0) I receive a 404 when I try to access to http://localhost:8080/swagger-ui.html.
My config details are:
// Spring boot gradle plugin
id 'org.springframework.boot' version '2.3.1.RELEASE'
// Swagger deps
implementation('io.springfox:springfox-swagger2:3.0.0')
implementation('io.springfox:springfox-swagger-ui:3.0.0')
@Configuration
@EnableSwagger2
public class AppConfig {
@Bean
public Docket apiDocket() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build();
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Springfox swagger-ui 3.0.0 does not bring up ... - Stack Overflow
OpenAPI is top on swagger, so if you are using Spring boot, the OpenAPI configuration is much simpler than Springfox.
Read more >springfox/springfox - Gitter
I'm using Springfox / Swagger / Spring Boot, and trying to figure out how to make the Swagger UI use https. In Spring...
Read more >Setting Up Swagger 2 with a Spring REST API - Baeldung
Learn how to document a Spring REST API using Swagger 2. ... The problem is, of course, when things fall apart in production...
Read more >Springfox Reference Documentation - GitHub Pages
In this scenario, Springfox will not correctly generate and expose the Swagger UI endpoint ( /swagger-ui.html ) if @EnableWebMvc is present in ...
Read more >[Solved]-Added Springfox Swagger-UI and it's not working ...
I ran into this issue because I had endpoints with request mappings that had path variables of this form: /{var}. Turns out that...
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 FreeTop 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
Top GitHub Comments
If you tried the two methods, then you should’ve seen the swagger-ui @
http://localhost:8080/swagger-ui/index.html
and not the url you mentioned in the issue.Ohh, that’s the problem! I was using an old bookmarked url… Sorry to bother you with such a stupid thing and thanks for your time.