路径有误,报错以及以错误的路径


严重: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [springmvc-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [springmvc-config.xml] cannot be opened because it does not exist

这种类型的报错有可能与配置文件路径有关。因为文件放置的位置有问题
这里写图片描述
应该将配置文件放在src下面而不是包下面
错误的路径访问,控制台没报错但就是没运行出自己想要 的结果
这里写图片描述
这里写图片描述

因为是直接访问index.jsp就没有数据
这里写图片描述
应该先访问数据
这里写图片描述

猜你喜欢

转载自blog.csdn.net/LJN951118/article/details/82687421