Application startup failed org.springframework.beans.factory.BeanDefinitionStoreException
最近使用了spring boot開發專案,但是對這個框架的瞭解不深,現在把每次遇到的坑發出來作為記錄。
錯誤
Application startup failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.tjr.supervisory.system.SupervisorySystemApplication]; nested exception is org.springframework.core.NestedIOException: Failed to load class [javax.servlet.ServletContextListener]; nested exception is java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
解決方式
註釋掉這段gradle程式碼 ,記得好像是之前匯出war包時候用的。 (provided表明該包只在編譯和測試的時候用!)
providedRuntime(‘org.springframework.boot:spring-boot-starter-tomcat:1.5.9.RELEASE’)
然後就可以運行了
相關推薦
Application startup failed org.springframework.beans.factory.BeanDefinitionStoreException
最近使用了spring boot開發專案,但是對這個框架的瞭解不深,現在把每次遇到的坑發出來作為記錄。 錯誤 Application startup failed org.springframework.beans.factory.BeanDefinitionStoreExcepti
嚴重: Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: I
嚴重: Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing
springcloud 入門第一坑[org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process]
springcloud 需要和springboot搭配使用,而其中,對於初學者來說,版本的搭配是相對關鍵 .通常網上的教程都會有相應的版本搭配,而我因為已經是用了springboot 1.5.10 所以,只能挑選對應的springcloud版本,如果版本沒挑選對,就會出現異常
Springboot 啟動時org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse config
springboot 專案在Idea部署可以正常執行,但是無論打成jar或者war,啟動都會報錯,具體錯誤如下:16:31:16 [main] INFO o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Re
org.springframework.beans.factory.BeanDefinitionStoreException
tro eve apps scanner mark lifecycle views def 解決 1、錯誤描寫敘述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ]
SpringMVC 問題 org.springframework.beans.factory.BeanDefinitionStoreException
tom 就是 lar ioe and use dap executor gis HTTP Status 500 – Internal Server Error Type Exception Report Message Servlet.init() for servlet
搭建springmvc框架時 報org.springframework.beans.factory.BeanDefinitionStoreException:
搭建springmvc框架報底下的錯,是因為web.xml檔案中的 contextConfigLocation classpath:spring/applicationContext-*.xml 路徑錯誤,正確的應該是 contextConfigLocati
org.springframework.beans.factory.BeanDefinitionStoreException:Filed
今天在進行spring和mybatis進行整合時,出現了下列錯誤 org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class:
Context initialization failed org.springframework.beans.factory.BeanCreationException
嚴重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘webSocketHandlerMapping’ defi
org.springframework.beans.factory.BeanDefinitionStoreException異常處理
今天調程式碼的時候出現了 如下的錯誤,經過多方查證,發現原來是eclipse版本的問題。 異常: 四月 26, 2017 10:54:36 上午 org.apache.catalina.core.ApplicationContext log 資訊
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document fro
在使用idea的時候報錯: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path
Springmvc專案遇到問題 org.springframework.beans.factory.BeanDefinitionStoreException
在做一個springmvc專案時,配好伺服器執行後可能會遇到如下問題: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate compo
報錯解決Context initialization failed org.springframework.beans.factory.BeanCreationException
今天打包完工程,放到Resin伺服器上執行,發現Context initialization failed報錯;看了一下報錯資訊,是將service層的某類注入到Controller層時有問題。錯誤提示中的原因 Caused by: org.springfra
ssm框架搭建過程中出現 spring-org.springframework.beans.factory.BeanDefinitionStoreException的解決
今天配置完ssm框架,啟動tomcat伺服器,報了IOException以及spring-org.springframework.beans.factory.BeanDefinitionStoreException的異常,說是找不到springmvc.xml的配置檔案以及無
解決:Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.
今天除錯專案程式碼,出現的引resource的Injection報錯,查原因查了好長時間才找到,現在這裡總結一下,以免以後忘掉以及給大家參考。 最終原因是迴圈呼叫,也就是我要注入的那個類也呼叫了我當前在寫的類; 報錯大致內容入下: Error starting Ap
org.springframework.beans.factory.parsing.BeanDefinitionParsingException
factor fast .text classpath ssr fas 結果 sso 百度 今天在練習spring aop時。調試程序出現下面錯誤 org.springframework.beans.factory.parsing.BeanDefinitionParsi
關於Spring中org.springframework.beans.factory.UnsatisfiedDependencyException異常
參數 ont 使用 容易 font body actor const 區分 這個異常是由於在applicationContext.xml中關於bean的autowirte裝配類型,在類型byName,byType,constructor三種類型中,可能會出現因無法自動裝配而
ssm整合時出現 org.springframework.beans.factory.BeanCreationException :Error creating bean with name ‘XXX’ 異常的原因及解決方法
ase wan oca conn sna aspect ava 配置 ng- ssm整合時出現 org.springframework.beans.factory.BeanCreationException :Error creating bean with name ‘X
啟動項目報錯:org.springframework.beans.factory.UnsatisfiedDependencyException
ini ali 監聽 exp date ram factor 接口 xml文件 dubbo項目: 啟動項目報錯:(web端) org.springframework.beans.factory.UnsatisfiedDependencyException: Error cr
spring 裝配容器失敗- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
出現 rom fin exception and enum file 找到 encoding 問題1. Context initialization failed org.springframework. beans.factory.xml.XmlBeanD