当安装官网的例子运行程序的时候出现了以下报错
报错信息如下:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri Apr 01 14:19:48 CST 2016
There was an unexpected error (type=Not Found, status=404).
原因是POM中缺少了必要的依赖,所以应添加以下依赖即可解决
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
参考以下链接:
http://stackoverflow.com/questions/26794334/spring-boot-mvc-template-not-loading-404-not-found