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


错误信息:


Whitelabel Error Page

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

Fri Oct 16 16:19:08 CST 2015
There was an unexpected error (type=Not Found, status=404).
/index.html

解决办法:

首先检查Springboot的是否可以进入Controller和设置映射页面路径是否正确

如果都检查通过,可以下面两种方式(个人建议使用第二种):

第一种:首先把Maven命令清空 打包:mvn clean package,然后在项目根目录下执行命令:mvn spring-boot:run   看是否可以正常启动访问

第二种:检查Run/Debug Configurations——Application——Application——Working directory的module路径是否是执行的本项目 和 Use classpath of module项目名称


This application has no explicit mapping for /error, so you are seeing this as a_第1张图片


你可能感兴趣的:(This application has no explicit mapping for /error, so you are seeing this as a)