Summary of Spring IO issues

Source: Internet
Author: User
Tags tomcat server

1. Spring boot embedded Tomcat does not start: 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>

Leave <scope>provided</scope> commented out and rerun the project to launch the embedded Tomcat server: Tomcat started on port (s): 8080 (http)

See also: http://blog.csdn.net/sun20100912/article/details/52013463

If not, in the introduction of the Web package:

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



Summary of Spring IO issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.