[ERROR] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.itheima.config.SpringConfig]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]
在SpringConfig里修该这个
原来:
@PropertySource("jdbc.properties")
解决办法:
@PropertySource("classpath:jdbc.properties")