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了。