项目启动成功,访问swagger报Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback.
时间: 2023-09-20 16:14:51 浏览: 130
根据提供的引用内容,问题描述的是在项目启动成功后访问swagger时出现了错误页面。错误页面显示"Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback."。
根据引用和引用可以得知,这个错误页面显示的信息表示没有为路径"/error"设置显式的映射,因此出现了这个错误。一种可能的解决方法是在项目中添加对路径"/error"的映射配置。另外,根据引用,在Spring Boot整合jsp后,可能需要通过"spring-boot:run"方式启动项目才能正常访问swagger。可以尝试使用这种方式启动项目,看是否能解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [SpringBoot中服务器报404错误:This application has no explicit mapping for /error, so you are seeing ...](https://blog.csdn.net/Xiong_M_DD/article/details/116104319)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as](https://blog.csdn.net/weixin_44341674/article/details/126252585)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文