項目新建后啟動失敗, 提示Unregistering JMX-exposed beans on shutdown
新建項目, 按照老師的步驟, 使用java 1.8.0_121-b13; maven 3.3.9; spring boot1.4.1, ?可就是啟動不了...
按網上說的, 是tomcat的原因, 我加上依賴還是不行
<dependency>
? <groupId>org.springframework.boot</groupId>
? <artifactId>spring-boot-starter-tomcat</artifactId>
? <scope>provided</scope>
</dependency>
整個控制臺輸入我貼下, 求大神幫我看看為啥
2017-05-07 21:08:21.593 ?INFO 1979 --- [ ? ? ? ? ? main] com.hommin.GirlApplication ? ? ? ? ? ? ? : Starting GirlApplication on lihongmindembp with PID 1979 (/Users/hommin/Documents/workspace/girl/target/classes started by Hommin in /Users/hommin/Documents/workspace/girl)
2017-05-07 21:08:21.605 ?INFO 1979 --- [ ? ? ? ? ? main] com.hommin.GirlApplication ? ? ? ? ? ? ? : No active profile set, falling back to default profiles: default
2017-05-07 21:08:21.733 ?INFO 1979 --- [ ? ? ? ? ? main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@9353778: startup date [Sun May 07 21:08:21 CST 2017]; root of context hierarchy
2017-05-07 21:08:23.131 ?INFO 1979 --- [ ? ? ? ? ? main] o.s.j.e.a.AnnotationMBeanExporter ? ? ? ?: Registering beans for JMX exposure on startup
2017-05-07 21:08:23.145 ?INFO 1979 --- [ ? ? ? ? ? main] com.hommin.GirlApplication ? ? ? ? ? ? ? : Started GirlApplication in 2.277 seconds (JVM running for 2.889)
2017-05-07 21:08:23.145 ?INFO 1979 --- [ ? ? ? Thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@9353778: startup date [Sun May 07 21:08:21 CST 2017]; root of context hierarchy
2017-05-07 21:08:23.146 ?INFO 1979 --- [ ? ? ? Thread-1] o.s.j.e.a.AnnotationMBeanExporter ? ? ? ?: Unregistering JMX-exposed beans on shutdown
2017-09-12
怎么解決的啊,我也是這個問題
2017-06-06
是嗎,必須需要TOMCAT嗎,我沒有,IDEA不是集成了嗎
2017-05-08
好吧 我知道了, 需要添加tomcat插件, 還不能有<scope>provided</scope> 添加依賴:
<dependency>
? <groupId>org.springframework.boot</groupId>
? <artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
2017-05-07
使用maven install 然后使用java -jar xxx 的方式就能啟動, 并且正常訪問