Spring-Boot:Unregistering JMX-exposed beans on shutdown

Unregistering JMX-exposed beans on shutdown
新建的SpringBoot項目,直接启动,报以上的错误
环境 jdk1.8 ,springboot 1.5.*
表示很懵逼!!!!
百度、Google
大部分的解决方法都是在pom.xml中加入

    `
        org.springframework.boot
        spring-boot-starter-tomcat
    `

加入以后还是没有解决问题

首先加入后,maven update
然后 maven clean install
启动,成功了!!!
很莫名其妙
对了,空白的项目加入一个Controller试试


实践出真知


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0modelVersion>

    <groupId>com.sunrungroupId>
    <artifactId>sunrun-peopleartifactId>
    <version>0.0.1-SNAPSHOTversion>
    <packaging>jarpackaging>

    <name>sunrun-peoplename>
    <description>sunrun-peopledescription>

    <parent>
        <groupId>org.springframework.bootgroupId>
        <artifactId>spring-boot-starter-parentartifactId>
        <version>1.5.6.RELEASEversion>
        <relativePath/> 
    parent>

    <properties>
        <project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8project.reporting.outputEncoding>
        <java.version>1.7java.version>
    properties>

    <dependencies>
        
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starterartifactId>
        dependency>

        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-testartifactId>
            <scope>testscope>
        dependency>

        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-webartifactId>
        dependency>
        

        
        <dependency>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-starter-thymeleafartifactId>
        dependency>

    dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-maven-pluginartifactId>
                <configuration>
                    <fork>truefork>
                configuration>
            plugin>
        plugins>
    build>

project>

看,也没有配置Tomcat,Spring-Boot:Unregistering JMX-exposed beans on shutdown_第1张图片

奇怪的事情年年有,今年特别多!!!

你可能感兴趣的:(spring-boot)