错误:org.springframework.context.ApplicationContextException:埋め込まれたコンテナを起動することができません。ネストされた例外はorg.springframework.context.ApplicationContextExceptionです:EmbeddedWebを開始することができません。

詳細なエラー:

1  org.springframework.context.ApplicationContextException:埋め込まれたコンテナを開始できません。欠落が原因EmbeddedServletContainerFactory BeanにEmbeddedWebApplicationContextを開始できません:ネストされた例外はorg.springframework.context.ApplicationContextExceptionです。
2      org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)で〜[スプリングブート1.5.9.RELEASE.jar:1.5.9 .RELEASE]
 3      org.springframework.contextました。 support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)〜[ばねコンテキスト4.3.13.RELEASE.jar:4.3.13 .RELEASE]
 4     :org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)〜[1.5.9春-ブート1.5.9.RELEASE.jarで.RELEASE]
 5      org.springframework.boot.SpringApplicationで.refresh(SpringApplication.java:693)ばねブート1.5.9.RELEASE.jar:1.5.9 .RELEASE]
 6      org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)における[スプリング・ブート-1.5.9.RELEASE.jar:1.5.9 .RELEASE]
 7      org.springframework.boot.SpringApplication.run(SpringApplication.java:303)における[バネブート1.5.9.RELEASE.jar:1.5.9 。 RELEASE]
 8     :org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)[1.5.9ばねブート1.5.9.RELEASE.jarで.RELEASE]
 9      org.springframework.boot.SpringApplication.run(SpringApplicationました。ジャワ:1107)ばねブート1.5.9.RELEASE.jar:1.5.9 .RELEASE]
 10      com.mgy.HystrixDashboardApplication.main(HystrixDashboardApplication.java:11)には、[クラス/ :NA]
 11  によって引き起こさ:ORG .springframework.context.ApplicationContextException:欠落が原因EmbeddedServletContainerFactory BeanにEmbeddedWebApplicationContextを開始することができません。
12     :org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:189)〜[1.5.9スプリングブート1.5.9.RELEASE.jarで.RELEASE]
 13      org.springframework.boot.contextで.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162)〜[ばねブート1.5.9.RELEASE.jar:1.5.9 .RELEASE]
 14      org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefreshで(EmbeddedWebApplicationContext .java:134)〜[ばねブート1.5.9.RELEASE.jar:1.5.9 .RELEASE]
 15      ... 8つの共通のフレームを省略
 16  
17 「127.0.0.1:55057」、輸送:「ソケット」ターゲットVM、アドレスから切断

解決策:起動クラスでは追加:@EnableAutoConfigurationの問題を解決するために注釈を。

おすすめ

転載: www.cnblogs.com/maigy/p/11614947.html