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

来源:互联网 发布:c语言怎么四舍五入 编辑:程序博客网 时间:2024/06/04 17:48

这里写图片描述
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri Aug 04 17:48:02 CST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
解决方法:
出现这个问题原因:
一、检查SpringbootApplication的位置是否直接在groupId的包下面
比如你的groupId是com.baidu。那么SpringbootApplication放在\src\main\java\com\baidu\目录下
二、如果第一步并且使用的是thymeleaf模板引擎,那么再检查有没有添加依赖

<dependency>   <groupId>org.springframework.boot</groupId>   <artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>
阅读全文
6 0
原创粉丝点击