Spring Boot Unregistering JMX-exposed beans on shutdown

创建springboot项目运行的时候报这个错误Unregistering JMX-exposed beans on shutdown,搜索发现第一条是:

Spring boot 嵌入的tomcat不能启动: Unregistering JMX-exposed beans on shutdown

但是这并不是我碰到的,其实还有其他的原因,就是创建项目的时候没有引入web组件,即

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

只要加入pom中即可运行项目

参考

http://stackoverflow.com/questions/22380119/why-my-spring-boot-app-always-shutdown

猜你喜欢

转载自blog.csdn.net/ngl272/article/details/71087734