swagger配置类
Rest接口:
后台报错:
No mapping found for HTTP request with URI [/swagger-ui] in DispatcherServlet with name 'dispatcherServlet'
原因分析:
这个错误,是因为资源映射问题导致。
我们在访问http://localhost:8080/swagger-ui.html#/时,这个swagger-ui.html相关的所有前端静态文件都在springfox-swagger-ui-2.6.1.jar里面。目录如下:
![](https://i-blog.csdnimg.cn/blog_migrate/c61e4a0913e52158e8bb9fd067baa10f.webp?x-image-process=image/format,png)
解决方式: