[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项目名称
[img]http://dl2.iteye.com/upload/attachment/0112/3753/48b415c2-78d8-393d-8691-9a914a198b80.jpg[/img]
错误信息: [/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项目名称
[img]http://dl2.iteye.com/upload/attachment/0112/3753/48b415c2-78d8-393d-8691-9a914a198b80.jpg[/img]