SpringBoot启动报错【This application has no explicit mapping for /error】
2018-03-14 11:10
746 查看
今天做SpringBoot案例的时候,创建SpringBoot程序发现无法访问Controller层的方法,报错:
Wed Mar 14 11:10:52 CST 2018There was an unexpected error (type=Not Found, status=404).No message available
找了半天原因发现,原来SpringBootDemo1Application启动类必须放在包的最外层,才可以扫描加载包下边的其他类。
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.Wed Mar 14 11:10:52 CST 2018There was an unexpected error (type=Not Found, status=404).No message available
找了半天原因发现,原来SpringBootDemo1Application启动类必须放在包的最外层,才可以扫描加载包下边的其他类。
相关文章推荐
- SpringBoot启动报错【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.....】
- SpringBoot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- 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
- 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.....】
- Spring Boot报错: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
- 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
- 异常: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
- Spring Boot 报错Wihtelabel Error Page:This application has no explicit mapping for /error 解决办法