问题描述如下
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.zyl.Config.SpringConfig]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]
加上以下配置
@PropertySource("classpath:jdbc.properties")