亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

項目新建后啟動失敗, 提示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


正在回答

14 回答

<dependency>
???<groupId>org.springframework.boot</groupId>
???<artifactId>spring-boot-starter</artifactId>
</dependency>

上面這段pom改成下面試下,(https://stackoverflow.com/questions/22380119/why-my-spring-boot-app-always-shutdown)

dependency>
????<groupId>org.springframework.boot</groupId>
????<artifactId>spring-boot-starter-web</artifactId>
</dependency>


4 回復 有任何疑惑可以回復我~
#1

洪俊勇

pom.xml在哪里呀
2017-11-18 回復 有任何疑惑可以回復我~
#2

慕粉3172092

build.gradle 這里配置,這就相當pom.xml
2018-12-14 回復 有任何疑惑可以回復我~
#3

慕粉3172092

dependencies { compile('org.springframework.boot:spring-boot-starter') compile('org.springframework.boot:spring-boot-starter-tomcat') compile('org.springframework.boot:spring-boot-starter-web') testCompile('org.springframework.boot:spring-boot-starter-test') }
2018-12-14 回復 有任何疑惑可以回復我~

防火墻!我也是這個報錯,把防火墻關了就好了,什么配置都不用加

0 回復 有任何疑惑可以回復我~
0 回復 有任何疑惑可以回復我~

添加下面這段代碼

<dependency>
????<groupId>org.springframework.boot</groupId>
????<artifactId>spring-boot-starter-web</artifactId>
</dependency>


0 回復 有任何疑惑可以回復我~

xczx

0 回復 有任何疑惑可以回復我~

mvn dependency:purge-local-repository

0 回復 有任何疑惑可以回復我~

我終于知道原因了,各位你們有把外置的maven插件在eclipse里面配置了嗎???????

在eclipse里面配置maven插件完美解決,哇哈哈

0 回復 有任何疑惑可以回復我~

加入這個,完美解決

<build>
? ?<plugins>
? ? ? ?<plugin>
? ? ? ? ? ?<groupId>org.apache.maven.plugins</groupId>
? ? ? ? ? ?<artifactId>maven-surefire-plugin</artifactId>
? ? ? ? ? ?<configuration>
? ? ? ? ? ? ? ?<testFailureIgnore>true</testFailureIgnore>
? ? ? ? ? ?</configuration>
? ? ? ?</plugin>
? ?</plugins>
</build>

2 回復 有任何疑惑可以回復我~
#1

掩護朕

然而并不能解決
2017-12-19 回復 有任何疑惑可以回復我~

這個問題有人解決了嗎

0 回復 有任何疑惑可以回復我~

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

0 回復 有任何疑惑可以回復我~
首頁上一頁12下一頁尾頁

舉報

0/150
提交
取消
2小時學會Spring Boot
  • 參與學習       151526    人
  • 解答問題       1132    個

Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序

進入課程

項目新建后啟動失敗, 提示Unregistering JMX-exposed beans on shutdown

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號