org.springframework.beans.factory.BeanDefinitionStoreException:
org.springframework.beans.factory.BeanDefinitionStoreException:IOExceptionparsingXMLd...
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource [WEB-INF/jdbc-config.xml];
nested exception is java.io.FileNotFoundException: class path resource
[WEB-INF/jdbc-config.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [WEB-INF/jdbc-config.xml]
cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:351)
at
--------------------------------------------------------------------------------
public RYDaoImpl() {
super();
ApplicationContext ctx = new ClassPathXmlApplicationContext("/WEB-INF/jdbc-config.xml"); //走到这句,就报上面的错误~
this.ds = (DataSource) ctx.getBean("dataSource");
this.jt = new JdbcTemplate(ds);
} 展开
parsing XML document from class path resource [WEB-INF/jdbc-config.xml];
nested exception is java.io.FileNotFoundException: class path resource
[WEB-INF/jdbc-config.xml] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [WEB-INF/jdbc-config.xml]
cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:351)
at
--------------------------------------------------------------------------------
public RYDaoImpl() {
super();
ApplicationContext ctx = new ClassPathXmlApplicationContext("/WEB-INF/jdbc-config.xml"); //走到这句,就报上面的错误~
this.ds = (DataSource) ctx.getBean("dataSource");
this.jt = new JdbcTemplate(ds);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询