簡體   English   中英

Spring Bean Configuration xml文件確實在IteliJ Idea中加載

[英]Spring Bean Configuration xml file does load load in IteliJ Idea

我正在嘗試從InteliJ的classpath加載spring bean爆燃文件。 但是它不會加載。 它顯示一個異常。 InteliJ屏幕截圖

Connected to server
[2016-12-13 09:58:50,515] Artifact eeducation:war exploded: Artifact is being deployed, please wait...
13-Dec-2016 21:58:54.181 INFO [RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
13-Dec-2016 21:58:54.290 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started
13-Dec-2016 21:58:54.611 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing Root WebApplicationContext: startup date [Tue Dec 13 21:58:54 ALMT 2016]; root of context hierarchy
13-Dec-2016 21:58:54.721 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [com/habibur/app/config/dao-config.xml]
13-Dec-2016 21:58:54.721 SEVERE [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [com/habibur/app/config/dao-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [com/habibur/app/config/dao-config.xml] cannot be opened because it does not exist
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:344)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
    at 

這個配置文件不應該在您的資源文件夾下嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM