class path resource [spring-mvc.xml] cannot be opened because it does not exist
时间: 2023-08-26 09:08:52 浏览: 93
回答: 这个错误是因为找不到spring-mvc.xml文件导致的。根据引用\[1\]和引用\[2\]的解释,可能是因为classpath指向的路径不是resource路径,所以无法找到该文件。解决办法是将classpath改成classpath*,即将路径改为"classpath*:spring-mvc.xml"。这样就可以找到并打开该文件了。
#### 引用[.reference_title]
- *1* [springMvc错误:class path resource [config/spring/springmvc.xml] cannot be opened because it does](https://blog.csdn.net/Entermomem/article/details/84873784)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [class path resource [springmvc.xml] cannot be opened because it does not exist](https://blog.csdn.net/weixin_46001825/article/details/119189142)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文