1. 程式人生 > >SpringBoot啟動報錯" Unable to start embedded container; nested exception is org.springframework.beans.fa

SpringBoot啟動報錯" Unable to start embedded container; nested exception is org.springframework.beans.fa

SpringBoot啟動報如下異常:

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-09-15 14:08:02.979 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application startup failed
org.springframework.context.ApplicationContextException: Unable to
start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.config.internalCacheAdvisor' defined in class
path resource [org/springframework/cache/annotation/ProxyCachingConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate

關鍵詞:

  • Unable to start embedded container;
  • Error creating bean with name
  • org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat’:
    Cache
    解決:
    所以猜測是註解配置的錯誤,報Bean工廠錯誤,後面找部落格和相關其他排查了一下.發現是我註解@EnableCaching 在沒有用到快取技術就放到application啟動類中了[email protected]要和@Cacheable(“books”)一起使用,否則就刪了它,否則就會報這個錯誤

所以但凡是報該異常的,先排除一下是不是註解欄位放錯位置和拼寫錯誤

相關推薦

SpringBoot啟動" Unable to start embedded container; nested exception is org.springframework.beans.fa

SpringBoot啟動報如下異常: Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'deb

springBootUnable to start embedded container; nested exception is org.springframework.context.Appl

今天樓主在做一個maven+springBoot的簡單專案的時候,發現報了 Unable to start embedded container; nested exception is org.springframework.context.Appl....的錯誤, 經過

Spring BooUnable to start embedded container; nested exception is java.lang.NoSuchMethodError: org

轉載地址:https://www.cnblogs.com/wushuai2014/p/7497206.html 問題描述:通過Spring Boot官方提供的方式,寫出如下HelloWorld程式碼。 org.springframework.context.ApplicationContex

啟動springboot專案Unable to start embedded container

後端技術: mave,springbootDataJpa,Springboot,Log4j,Spring,Hibernate,Netty,JWT,jpush,Jetty / tomcat[與tomcat相比,更加輕量級],httpclient等 報錯資訊如下:   看了下

Spring Boot常見問題(二)Unable to start embedded container; nested exception is java.lang.NoSuchMethodErro

問題描述:通過Spring Boot官方提供的方式,寫出如下HelloWorld程式碼。 @Controller @EnableAutoConfiguration public class HelloWorld { @RequestMapping(

Spring Boot 啟動Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFa

在配置SpringBoot的時候 啟動的時候報錯 Unable to start ServletWebServerApplicationContext due to missing ServletWeb

解決springboot啟動失敗問題:Unable to start embedded container;

應該 create exception illegal cep listener cli use log 全部報錯內容如下: org.springframework.context.ApplicationContextException: Unable to start e

啟動SpringBoot嵌入的tomcat導致不能啟動 unable to start embedded container的錯誤

啟動SpringBoot嵌入的tomcat導致不能啟動   <!-- tomcat 的支援.--> <dependency> <groupId>org.springframework.boot</groupId

springboot專案啟動Failed to configure a DataSource: 'url' attribute is not specified and no embedded..

*************************** APPLICATION FAILED TO START *************************** Description:

springboot啟動 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

unicode class art ica jdbc rmi red toc onf 新建了一個springboot項目報一下錯誤: Failed to configure a DataSource: ‘url‘ attribute is not specified

freeradius 啟動Refusing to start with libssl version OpenSSL 1.0.1

all bss sim span family sin pop div con 改動etc/raddb下的radiusd.conf文件 找到allow_vulnerable_openssl = no,改動成allow_vulnerable_openssl = ye

fiddler啟動Unable to bind to port [8888],ErrorCode:10106

err set gpo 錯誤 啟動 str 監聽 命令 error 啟動運行fiddler 報錯,提示Unable to bind to port [8888],ErrorCode:10106 解決方式: 使用Fiddler或其他類似的監聽工具出現這種錯誤時, Unable

第一行程式碼新聞例子 Unable to start activity ComponentInfo 原因

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.timemanager.jason.fragmentbestpractice, PID: 5621 java.lang.RuntimeException: Unable to start activity

AndroidStudiounable to start adb server:adb server version doesn't ......run manually if necessary

因為生病原因,不得不請了將近一週的假,回到公司後開啟AS的時候出現了一個莫名的錯誤彈窗提示: unable to create debug bridge:unable to start adb server:adb server version(31) doesn't ma

Eclipse中部署專案時,Tomcat啟動 “Failed to start component [StandardServer[8005]]”的解決方法

【錯誤現象】SEVERE: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: F

轉:springboot專案啟動Failed to configure a DataSource: 'url' attribute is not specified and no embedde

*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url'

Eclipse中部署專案時,Tomcat啟動 “Failed to start component“

    你修改了tomcat的server.xml檔案,如下 <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"> <

kudu master啟動 Failed to start Kudu Master Server. Return value: 1 [FAILED]

 自己搭建的三個節點的kudu叢集 叢集配置狀況如下: 節點host名 節點角色 IP node-1 kudu-master、kudu-tserver 19

Jmeter安裝和啟動unable to access jarfile apachejmeter.jar的解決

變數名:【JMETER_HOME】 變數值:【D:\Program Files\jmeter\apache-jmeter-3.0】(根據實際的jmeter解壓路徑填寫) 變數名:【CLASSPATH】 變數值:%JMETER_HOME\lib\ext\ApacheJMeter_core.jar;%

SpringBoot啟動Failed to auto-configure a DataSource 的問題解決!

今天搭了個springboot的小demo,但是啟動的時候報了這個錯誤: scription: Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no em