报错提示:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [classpath:spring/applicationContext-*.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring/] cannot be resolved to URL because it does not exist
修改以下代码:将classpath :spring。。。 修改为 classpath*:spring。。。
简单区分:
classpath: 只在指定class路径下查找文件;
classpath*: 在所有路径下查找文件。