spring-boot启动报错【This application has no explicit mapping for /error.....】
2017-08-07 14:13
716 查看
从spring-boot官网上看的例子,自己试着写了一个
返回name和id的小接口,一开始访问http://localhost:8080/getPerson 报错 :
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Dec 14 16:35:25 CST 2016
There was an unexpected error (type=Not Found, status=404).
No message available
很像是没有读到你要访问的地址。
原因是【Application启动类放的位置不对】要将Application放在最外层,也就是要包含所有子包。
比如你的groupId是com.google,子包就是所谓的com.google.xxx,所以要将Application放在com.google包下。
请参考以下结论:spring-boot会自动加载启动类所在包下及其子包下的所有组件.
http://blog.csdn.net/q12344566789/article/details/53641582
返回name和id的小接口,一开始访问http://localhost:8080/getPerson 报错 :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.Wed Dec 14 16:35:25 CST 2016
There was an unexpected error (type=Not Found, status=404).
No message available
很像是没有读到你要访问的地址。
原因是【Application启动类放的位置不对】要将Application放在最外层,也就是要包含所有子包。
比如你的groupId是com.google,子包就是所谓的com.google.xxx,所以要将Application放在com.google包下。
请参考以下结论:spring-boot会自动加载启动类所在包下及其子包下的所有组件.
http://blog.csdn.net/q12344566789/article/details/53641582
相关文章推荐
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for(转)
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for
- Springboot启动后报错【This application has no explicit mapping for /error, so you are seeing this as a fallback····】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错:This application has no explicit mapping for /error, so you are seeing this as a fal
- SpringBoot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- 搭建Spring Boot框架 Whitelabel Error Page This application has no explicit mapping for /error, so you ar
- Idea - Spring Boot - MVC 出现This application has no explicit mapping for /error, so you are seeing th
- Spring Boot 报错Wihtelabel Error Page:This application has no explicit mapping for /error 解决办法
- Springboot应用静态资源不能访问,报“This application has no explicit mapping for /error”
- Spring Whitelabel Error Page: This application has no explicit mapping for /error, so you are seeing
- SpringBoot启动报错【This application has no explicit mapping for /error.....】
- SpringBoot启动报错【This application has no explicit mapping for /error】
- spring boot报错:this application has no explicit mapping for /error...
- SpringB异常:This application has no explicit mapping for /error, so you are seeing this as a fallback.
- 异常:This application has no explicit mapping for /error, so you are seeing this as a fallback.