原文:SpringBoot无法访问接口,报错:This application has no explicit mapping for /error, so you are seeing this as a fallback.

问题 SpringBoot启动后,无法访问接口,报错如下: Whitelabel Error Page This application has no explicit mapping for error, so you are seeing this as a fallback. There was an unexpected error type Not Found, status . No ...

2022-01-23 21:46 0 6668 推荐指数:

查看详情

This application has no explicit mapping for /error, so you are seeing this as a fallback.

完整报错如下: 上面这句话大概的意思是,“这个应用没有明确的映射/错误,所以你才会看到这样一个返回结果”,这是我自己翻得,将就可以看,英语好的童鞋勿笑话哈。其实,我翻完之后都在想没有明显的问题是什么玩意,我又看到下面404心里就踏实了。 谷歌一下,针对以上错误出现的可能有一下几点 ...

Sat Mar 28 04:56:00 CST 2020 0 9265
Spring项目修改静态资源路径后,无法访问swagger-ui.html,报错This application has no explicit mapping for /error, so you are seeing this as a fallback.

项目到了收尾阶段,想要解决前端无法获取静态资源,没法显示用户头像的问题。在application.yml文件里检查文件上传路径和静态文件路径 然后确定前端请求连接和后端@GetMapping("/**")里的值一样,数据库中写好测试头像测试路径,运行访问前端页面 ...

Thu Apr 09 00:21:00 CST 2020 0 1759
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM