spring配置文件扫描不到问题

报错: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

(1)路径写错

(2)resources文件名写错(resource)或者没有test resources root

posted @ 2019-04-14 14:22  小菜鸡哒  阅读(426)  评论(1)    收藏  举报