您的位置:首页 > 移动开发

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

2015-10-16 16:43 441 查看
[color=red]
错误信息: [/color]

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

[color=red]解决办法: [/color]

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

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

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

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


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐