Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframewo
https://blog.csdn.net/StriverChuiYing/article/details/81749793
Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaInstanceConfigBean': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
這是因為client裡不包含Tomcat的依賴,所以Spring容器無法建立一些例項,從而導致專案無法啟動,只需在pom.xml檔案中,加上web依賴即可:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
相關推薦
Invocation of destroy method failed on bean with name ‘XXXX’
implement clas acl pan beans ins fail sco ati 項目啟動報錯問題:Invocation of destroy method failed on bean with name ‘scopedTarget.eurekaClient‘
EurekaClient啟動報錯:Invocation of destroy method failed on bean with name 39;scopedTarget.eurekaClient39;
異常 EurekaClient啟動報錯 Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframework.beans.factory.Bea
Invocation of destroy method failed on bean with name 'XXX'
問題:Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframewo 解決辦法:在pom檔案中,增加如下依賴。 <depen
Invocation of destroy method failed on bean with name 39;scopedTarget.eurekaClient39;: org.springframewo
https://blog.csdn.net/StriverChuiYing/article/details/81749793 Invocation of destroy method failed on bean with name 'scopedTarget.eure
Couldn't find a destroy method named 'close' on bean with name 'dataSourceFund'
<bean id="dataSourceFund" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
【Java 6】Invocation of init method failed
【Java 6】Invocation of init method failed 背景敘述: 在除錯SpringMVC時報錯: Error creating bean with name
Invocation of init method failed; nested exception is org.activiti.engine.ActivitiException: couldn'
這個是activiti初始化的時候從配置檔案裡讀取內容讀取失敗,可能是缺少properties檔案,可能是peoperties檔案裡缺失定義的指標,也可能是你的pom檔案裡沒有將jpg格式的檔案進行打包
Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [
2010-11-30 15:47:28,328 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failedorg.springframework.beans.fac
Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFa
Spring default-autowire="byName"自動配置bean注入,(刪掉了顯示配置屬性,還是可以注入,沒發現這個屬性的時候還以為是快取的問題)。發現在spring中的Beans屬性項中,寫了這麼一段“default-autowire="byName",.恍然大悟,配置了這個屬性項後,sp
Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: DEFAULT_INCOMPATIB
這類錯誤一般出現在整合專案包的時候,解決方法最好是開啟原始碼org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryprotected Configuration newConfiguration() t
Error creating bean with name 39;fileController39;: Injection of resource dependencies failed;
alt context http original pen isp listener uestc file 1.錯誤描述 Exception sending context initialized event to listener instance of class o
解決Error creating bean with name XXX: Injection of resource dependencies failed
解決SSH整合時出現的錯誤,錯誤如上圖所示。 該錯誤是因為Mybatis中需要的註解,spring沒有檢測到此註解資訊。 錯誤原因可能有四處: (1):web.xml沒有配置spring的上下文環境和核心的監聽器 解決辦法: 在web.xml新增 <!--s
品優購Error creating bean with name 39;itemPageServiceImpl39;: Injection of autowired dependencies failed
異常資訊 嚴重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.spr
Error creating bean with name 39;investExcelController39;: Injection of resource dependencies failed;
啟動springboot的過程中,報以下錯誤: Error creating bean with name ‘investExcelController’:Injection of resource dependencies failed; Error creating bean with
Error creating bean with name 'userController': Injection of resource dependencies failed;
Springmvc問題 今天,做開發時,剛配置好環境,測試一下環境是否正常,然後日誌報錯是: org.springframework.beans.factory.BeanCreationExcep
Error creating bean with name 39;bookShopListImpl39;: Injection of autowired dependencies failed;
Could not autowire field Error creating bean with name 'bookShopListImpl': Injection of autowired dependencies failed; org.springframew
Error creating bean with name '***(類名)': Injection of autowired dependencies failed;
整springMVC時報錯如下圖: 參考了好多方法,可能是由於和別人jar包和別的環境差別的原因,總是500錯誤 資訊裡有句“Error creating bean with name ‘productController’: Injection of
SpringMVC查詢出現500,報錯Error creating bean with name 39;menuController39;: Injection of autowired dependency
解決方案:這是因為在service.impl包下的IEmpServiceImpl中沒有加@server,在控制層呼叫業務層, &n
Bean with name 39;xxxService39; has been injected into other beans [xxxServiceA,xxxServiceB] in its raw version as part of a circular reference, b
啟動專案,通過@Autowired注入物件,出現迴圈依賴,導致專案啟動失敗,具體報錯資訊如下: Exception encountered during context initialization - cancelling refresh attempt: org.springf
Spring MVC 配置報錯: Error creating bean with name 'userController': Injection of resource dependencies
今天做了一個簡單的專案,用spring+springMVC實現使用者的CRUD,看似簡單的一個小demo,卻在配置上浪費了不少時間,首先看一下目錄結構:專案要求使用jdbcTemplate配置資料來源,下面附上spring的配置檔案和springMVC的配置檔案,分別如下:a