spring boot新建项目报错总结
1.启动报:Unregistering JMX-exposed beans on shutdown
原因:以来的Tomcat没有启动
解决办法:在pom.xml加入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
2.页面访问报 404
解决办法:pom.xml加入web依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>1.5.9.RELEASE</version>
</dependency>
3.又报500后台错误,这个问题我是更新项目就解决了:项目->右键->Maven->Update Project