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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么Springboot 初始化模板 啟動自動關閉沒有報錯信息

為什么Springboot 初始化模板 啟動自動關閉沒有報錯信息

mythos_ 2017-04-13 09:37:36
? . ? ____ ? ? ? ? ?_ ? ? ? ? ? ?__ _ _?/\\ / ___'_ __ _ _(_)_ __ ?__ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \?\\/ ?___)| |_)| | | | | || (_| | ?) ) ) )? ' ?|____| .__|_| |_|_| |_\__, | / / / /?=========|_|==============|___/=/_/_/_/?:: Spring Boot :: ? ? ? ?(v1.4.5.RELEASE)2017-04-13 09:30:24.619 ?INFO 5132 --- [ ? ? ? ? ? main] com.example.DemoApplication ? ? ? ? ? ? ?: Starting DemoApplication on teacher023 with PID 5132 (C:\Users\Administrator\IdeaProjects\myth\demo\target\classes started by Administrator in C:\Users\Administrator\IdeaProjects\myth)2017-04-13 09:30:24.619 ?INFO 5132 --- [ ? ? ? ? ? main] com.example.DemoApplication ? ? ? ? ? ? ?: No active profile set, falling back to default profiles: default2017-04-13 09:30:24.681 ?INFO 5132 --- [ ? ? ? ? ? main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3b69e7d1: startup date [Thu Apr 13 09:30:24 GMT+08:00 2017]; root of context hierarchy2017-04-13 09:30:25.742 ?INFO 5132 --- [ ? ? ? ? ? main] o.s.j.e.a.AnnotationMBeanExporter ? ? ? ?: Registering beans for JMX exposure on startup2017-04-13 09:30:25.758 ?INFO 5132 --- [ ? ? ? ? ? main] com.example.DemoApplication ? ? ? ? ? ? ?: Started DemoApplication in 1.607 seconds (JVM running for 1.979)2017-04-13 09:30:25.758 ?INFO 5132 --- [ ? ? ? Thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@3b69e7d1: startup date [Thu Apr 13 09:30:24 GMT+08:00 2017]; root of context hierarchy2017-04-13 09:30:25.758 ?INFO 5132 --- [ ? ? ? Thread-1] o.s.j.e.a.AnnotationMBeanExporter ? ? ? ?: Unregistering JMX-exposed beans on shutdownProcess finished with exit code 0
查看完整描述

3 回答

?
rookie2maven

TA貢獻278條經驗 獲得超76個贊

沒有引入spring-boot-starter-web包,此時的程序沒有運行在服務器上,跟普通的java程序一樣。


查看完整回答
7 反對 回復 2017-10-16
?
慕標0118672

TA貢獻1條經驗 獲得超1個贊

?<dependency>
????????<groupId>org.springframework.boot</groupId>
????????<artifactId>spring-boot-starter-tomcat</artifactId>
????????<scope>provided</scope>
????</dependency>
????<scope>provided</scope>刪除就好了


查看完整回答
1 反對 回復 2018-09-18
?
光之心MAX

TA貢獻7條經驗 獲得超1個贊

可能有些啟動時靜態實現的功能初始化出錯,導致啟動失敗,自動關閉。

查看完整回答
1 反對 回復 2017-10-17
  • 3 回答
  • 3 關注
  • 12992 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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