第一种:在web.xml中只配置DispatchServlet,然后在springmvc.xml中include spring-*.xml 第二种:在web.xml中配置Listener监听加载spring配置文件,配置DispatchServlet 加载springmvc.xml
收起
个人感觉spring更好,仅供参考
报告相同问题?