问题
I am trying to integrate Spring Boot 2.0 with swagger but not showing up end points.When I looked to developer console on network tab ,it says that I couldn't find "http://localhost:8080/swagger-resources/configuration/ui" and return 404.
回答1:
If you have @EnableWebMvc or @WebMvcConfigurationSupport annotation anywhere in the project then remove these or add custom resource handlers to configure swagger-ui.
Here's some common solutions: https://github.com/springfox/springfox/issues/2396#issuecomment-402150402
来源:https://stackoverflow.com/questions/49586658/spring-boot-2-0-with-swagger-ui-not-working-properly