错误:SpringBoot pom.xml文件第一行出现unknown error
原因:似乎是一个bug
解决方法:
1 将pom.xml中 <version>2.1.4.RELEASE</version> 改为 <version>2.1.4.RELEASE</version> 然后 Maven -> update project
错误:Springboot跳转页面失败 出现如下错误代码
There was an unexpected error (type=Not Found, status=404).
No message available
解决方法:
Application启动类的位置不对.要将Application类放在最外侧,即包含所有子包
原因:spring-boot会自动加载启动类所在包下及其子包下的所有组件.