idea中classpath的问题

新创建的项目,在web.xml中配置 Spring MVC 的 DispatcherServlet,,指定springmvc.xml,结果这部分出错,请求的时候报错

结果查找,发现在Idea中,classpath里的文件,必须在resources中

最后项目结构是:

这是相关的文章:https://blog.csdn.net/skyebefreeman/article/details/56495637

原文地址:https://www.cnblogs.com/zhaobao1830/p/10749034.html