您的位置:首页 > 编程语言 > Java开发

SpringBoot (一) -----Uploading Files 例子报错

2016-04-01 14:24 411 查看
当安装官网的例子运行程序的时候出现了以下报错

报错信息如下:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: