關於SpringBoot專案啟動報Unregistering JMX-exposed beans on shutdown的問題
阿新 • • 發佈:2019-01-23
今晚初識SpringBoot,按照官網引導建立了SpringBoot的HelloWorld。在啟動時報Unregistering JMX-exposed beans on shutdown的錯誤。日誌如下:
run main class:SpringbootJdbcApplication Application
2018-02-05 10:25:19.795 INFO 93703 --- [main] o.s.j.e.a.AnnotationMBeanExporter: Registering beans for JMX exposure on startup
2018-02-05 10:25:19.814 INFO 93703 --- [main] c.e.s.SpringbootJdbcApplication: Started SpringbootJdbcApplication in 2.272 seconds (JVM running for 3.018)
2018-02-05 10:25:19.815 INFO 93703 --- [Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.spring [email protected]3bd94634: startup date [Mon Feb 05 10:25:18 CST 2018]; root of context hierarchy
2018-02-05 10:25:19.817 INFO 93703 --- [Thread-2] o.s.j.e.a.AnnotationMBeanExporter: Unregistering JMX-exposed beans on shutdown
經過度娘搜尋,添加了SpringBoot對tomcat的maven依賴:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope> </dependency>
結果還是不盡人意...
再經度娘谷哥數次,試驗多次後發現maven下載的tomcat系列jar包有損壞的情況