1. 程式人生 > >Springboot 啟動時org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse config

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 - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationCont
[email protected]: startup date [Wed May 30 16:31:16 CST 2018]; root of context hierarchy
16:31:17 [main] WARN  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springfra
mework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.sad.Application]; nested exception is java.lang.IllegalArgumentException: Mal
formed \uxxxx encoding.
16:31:17 [main] ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.wsx.BootdoApplication]; nested exception is java.lang.IllegalArgumentE
xception: Malformed \uxxxx encoding.
        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:181)
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308)
        at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228)
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272)
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:92)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)
        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
        at com.wsx.BootdoApplication.main(BootdoApplication.java:17)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Unknown Source)
        at java.util.Properties.load0(Unknown Source)
        at java.util.Properties.load(Unknown Source)
        at org.springframework.util.DefaultPropertiesPersister.load(DefaultPropertiesPersister.java:58)
        at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:99)
        at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:72)
        at org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:58)
        at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:65)
        at org.springframework.core.io.support.DefaultPropertySourceFactory.createPropertySource(DefaultPropertySourceFactory.java:36)
        at org.springframework.context.annotation.ConfigurationClassParser.processPropertySource(ConfigurationClassParser.java:440)
        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:271)
        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:190)
        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:292)
        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198)
        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167)

        ... 21 common frames omitted

所有的配置檔案都檢查了沒有發現/轉義問題。

有沒有大神能幫忙看一下除了什麼問題。

相關推薦

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

springcloud 入門第一坑[org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process]

springcloud 需要和springboot搭配使用,而其中,對於初學者來說,版本的搭配是相對關鍵 .通常網上的教程都會有相應的版本搭配,而我因為已經是用了springboot 1.5.10 所以,只能挑選對應的springcloud版本,如果版本沒挑選對,就會出現異常

搭建springmvc框架org.springframework.beans.factory.BeanDefinitionStoreException:

搭建springmvc框架報底下的錯,是因為web.xml檔案中的 contextConfigLocation classpath:spring/applicationContext-*.xml 路徑錯誤,正確的應該是 contextConfigLocati

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

tomcat啟動異常--org.springframework.beans.factory.BeanCreationException

異常 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController': Injection of autowired dependencies

Tomcat啟動異常org.springframework.beans.factory.BeanCreationException

org.springframework.beans.factory.BeanCreationException 異常程式碼塊 嚴重: Exception sending context initialized event to listener instance of class o

嚴重: Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: I

嚴重: Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing 

Application startup failed org.springframework.beans.factory.BeanDefinitionStoreException

最近使用了spring boot開發專案,但是對這個框架的瞭解不深,現在把每次遇到的坑發出來作為記錄。 錯誤 Application startup failed org.springframework.beans.factory.BeanDefinitionStoreExcepti

org.springframework.beans.factory.BeanDefinitionStoreException:Filed

今天在進行spring和mybatis進行整合時,出現了下列錯誤   org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class:

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

整合Spring和Strutsorg.springframework.beans.factory.CannotLoadBeanClassException解決辦法

在整合Spring和Struts時碰到了這個警告: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.test.service.impl.MyS

ssm框架搭建過程中出現 spring-org.springframework.beans.factory.BeanDefinitionStoreException的解決

今天配置完ssm框架,啟動tomcat伺服器,報了IOException以及spring-org.springframework.beans.factory.BeanDefinitionStoreException的異常,說是找不到springmvc.xml的配置檔案以及無

org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.io.IOException: The temporar

一、異常資訊 ROOT] is not valid at org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.handleParseFailure(StandardMultipartHttpServlet

配置springmvc啟動服務報錯org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ma

問題描述:前幾天啟動的時候還正常,今天改動了一下pom.xml檔案中的jar包版本就包上面的錯,結果上spring-mvc.xml的檔案中也連線不到這個類。 Caused by: org.springframework.beans.factory.NoSuchBeanDef

springboot啟動報錯: java.lang.ClassNotFoundException: org.springframework.beans.factory.ObjectProvider

使用springboot時遇到報錯,報錯資訊如下 java.lang.IllegalStateException: Cannot load configuration class: org.mybatis.spring.boot.autoconfigure.MybatisA

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