1. 程式人生 > >Springboot+idea的一個bug(Unregistering JMX-exposed beans on shutdown)

Springboot+idea的一個bug(Unregistering JMX-exposed beans on shutdown)

Unregistering JMX-exposed beans on shutdown

新增程式碼:

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

還有就是tomcat無法啟動,先把run任務關閉掉,開啟工作管理員,關閉Java.exe這個任務。然後再run就ok了。