Spring boot 2.0 with swagger ui not working properly

回眸只為那壹抹淺笑 提交于 2019-12-11 04:58:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!