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._第1张图片
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.bootgroupId>
   <artifactId>spring-boot-starter-thymeleafartifactId>
dependency>

你可能感兴趣的:(SpringBoot,Springboot)