spring-boot启动报错【This application has no explicit mapping for /error.....】
来源:互联网 发布:网络交接不可用 编辑:程序博客网 时间:2024/06/05 09:20
from:http://blog.csdn.net/q12344566789/article/details/53641582
从spring-boot官网上看的例子,自己试着写了一个 返回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会自动加载启动类所在包下及其子包下的所有组件.
还有可能是配置文件写的有问题导致的。
阅读全文
0 0
- 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启动报错【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...
- 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 fallb
- 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.....】
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for
- Spring Boot报错:This application has no explicit mapping ... a fallback
- Spring Boot报错:This application has no explicit mapping ... a fallback
- springboot访问页面报错:This application has no explicit mapping for /error, so you are seeing this as a fa
- 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
- 【微信】微信开发(2)微信消息接受与回复
- hdu6212
- 编码习惯之Controller规范
- Android通过反射机制实现后台设置蓝牙可见性
- 【安全牛学习笔记】WPA安全系统
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- Chrome 调试快捷键
- 文章标题
- 成立一年 百度搜索公司迎来首任 CTO
- 深度学习(二)overfitting和regularization、dropout
- jemter中http请求自动重定向和跟随重定向区别
- 数组与矩阵---打印N个数组整体最大的TopK
- Bootstrap兼容IE6 IE7 IE8 IE9 IE10 IE11的方法
- 原码, 反码, 补码 详解