问题遇到的现象和发生背景
1.pom.xml已集成swagger;
2.appication.yml 已配置swagger: enable: true
3.controller已配置@Aapi等
运行sringbootApplication后无法打开http://localhost:8088/swagger-ui.html
问题相关代码,请勿粘贴截图
运行结果及报错内容
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Jan 10 15:27:42 CST 2022
There was an unexpected error (type=Not Found, status=404).
No message available
后台报错:
[ WARN][org.springframework.web.servlet.PageNotFound]-(http-nio-8043-exec-2) No mapping found for HTTP request with URI [/swagger-ui.html] in DispatcherServlet with name 'dispatcherServlet'