SSM整合错误:org.springframework.beans.factory.BeanInitializationException: Could not load properties

org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]

不能打开配置文件

at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:153)
		at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:286)
		at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:166)
		at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
		at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)

classpath惹的祸:
在这里插入图片描述

添加后启动成功

在这里插入图片描述

posted @ 2020-06-20 23:24  爱敲代码的小游子  阅读(31)  评论(0)    收藏  举报