項目新建后啟動失敗, 提示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-16
上面這段pom改成下面試下,(https://stackoverflow.com/questions/22380119/why-my-spring-boot-app-always-shutdown)
2019-08-05
防火墻!我也是這個報錯,把防火墻關了就好了,什么配置都不用加
2018-09-17
http://blog.sina.com.cn/s/blog_87d332c40102xvro.html?這個辦法可以解決
2018-08-27
添加下面這段代碼
2018-07-26
xczx
2018-05-08
mvn dependency:purge-local-repository
2018-04-10
我終于知道原因了,各位你們有把外置的maven插件在eclipse里面配置了嗎???????
在eclipse里面配置maven插件完美解決,哇哈哈
2017-12-07
加入這個,完美解決
<build>
? ?<plugins>
? ? ? ?<plugin>
? ? ? ? ? ?<groupId>org.apache.maven.plugins</groupId>
? ? ? ? ? ?<artifactId>maven-surefire-plugin</artifactId>
? ? ? ? ? ?<configuration>
? ? ? ? ? ? ? ?<testFailureIgnore>true</testFailureIgnore>
? ? ? ? ? ?</configuration>
? ? ? ?</plugin>
? ?</plugins>
</build>
2017-12-01
這個問題有人解決了嗎
2017-10-16
2017-10-16 18:22:24.219? INFO 9700 --- [?????????? main] com.zilong.girl.GirlApplication????????? : Starting GirlApplication on ZZL with PID 9700 (C:\Users\admin\IdeaProjects\girl\target\classes started by admin in C:\Users\admin\IdeaProjects\girl)
2017-10-16 18:22:24.223? INFO 9700 --- [?????????? main] com.zilong.girl.GirlApplication????????? : The following profiles are active: test
2017-10-16 18:22:24.290? INFO 9700 --- [?????????? main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@517cd4b: startup date [Mon Oct 16 18:22:24 CST 2017]; root of context hierarchy
2017-10-16 18:22:25.587? INFO 9700 --- [?????????? main] o.s.j.e.a.AnnotationMBeanExporter??????? : Registering beans for JMX exposure on startup
2017-10-16 18:22:25.598? INFO 9700 --- [?????????? main] com.zilong.girl.GirlApplication????????? : Started GirlApplication in 1.728 seconds (JVM running for 3.023)
2017-10-16 18:22:25.607? INFO 9700 --- [?????? Thread-5] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@517cd4b: startup date [Mon Oct 16 18:22:24 CST 2017]; root of context hierarchy
2017-10-16 18:22:25.609? INFO 9700 --- [?????? Thread-5] o.s.j.e.a.AnnotationMBeanExporter??????? : Unregistering JMX-exposed beans on shutdown
Process finished with exit code 0