您的位置:首页 > 编程语言 > Java开发

org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition re

2018-01-30 16:13 811 查看
今天搭建SpringMvc的时候突然报:

org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [spring/ApplicationContext-*.xml]; nested exception is java.io.FileNotFoundException: ServletContext resource [/spring/] cannot be resolved
to URL because it does not exist

经过自习检查路径配置文件名字什么都没有写错.最后发现是在web.xml中配置的时候少写了classpath:切记

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐