首页 > 编程语言 > 详细

Spring IO 问题总结

时间:2018-01-04 18:40:18      阅读:247      评论:0      收藏:0      [点我收藏+]

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

  在官网(http://start.spring.io/)上generate project,将生成的项目导入idea中,运行之后控制台输出“Unregistering JMX-exposed beans on shutdown”,

     tomcat也没有运行。寻找原因,看了下pom.xml文件中tomcat依赖关系如下:

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
</dependency>

    将<scope>provided</scope>注释掉,重新运行项目便可启动嵌入的tomcat服务器:Tomcat started on port(s): 8080 (http)

    参见:http://blog.csdn.net/sun20100912/article/details/52013463

    如果还不行,在引入WEB包:

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

 

 



Spring IO 问题总结

原文:https://www.cnblogs.com/Jtianlin/p/8194796.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!