STS新建Springboot 启动 SpringBoot 报错:
运行之后控制台输出“Unregistering JMX-exposed beans on shutdown”
原因为:SpringBoot内置Tomcat没有正常启动,在pom.xml 中添加:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope>
</dependency>
重新运行项目便可启动嵌入的tomcat服务器