新創建的項目,在web.xml中配置 Spring MVC 的 DispatcherServlet,,指定springmvc.xml,結果這部分出錯,請求的時候報錯
結果查找,發現在Idea中,classpath里的文件,必須在resources中
最后項目結構是:
這是相關的文章:https://blog.csdn.net/skyebefreeman/article/details/56495637
新創建的項目,在web.xml中配置 Spring MVC 的 DispatcherServlet,,指定springmvc.xml,結果這部分出錯,請求的時候報錯
結果查找,發現在Idea中,classpath里的文件,必須在resources中
最后項目結構是:
這是相關的文章:https://blog.csdn.net/skyebefreeman/article/details/56495637
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。