简体   繁体   English

Spring Bean Configuration xml文件确实在IteliJ Idea中加载

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

I am trying to load a spring bean conflagration file from classpath in InteliJ. 我正在尝试从InteliJ的classpath加载spring bean爆燃文件。 But It does not load. 但是它不会加载。 It show an exception. 它显示一个异常。 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