IDEA 启动报错:
Closing org.springframework.context.annotation.AnnotationConfigApplicationContext
Unregistering JMX-exposed beans on shutdown
如图:
解决方法:
pom.xml文件中:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
改成
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
重新构建工程使配置生效即可。