在网上找的例子,https://blog.youkuaiyun.com/sysushui/article/details/68937005 让我感受到了技术在飞快地发展。建立项目时自动下载的依赖包是最新的,所以报
Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
所以在Project Structure中把Spring版本改回Spring3
然后报错
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
这是因为用的是struts2.5不是struts2.3。StrutsPrepareAndExecuteFilter换地方了,哎!!!
struts2.5在这个路径:
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilterstruts2.3在这个路径:
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
注:新手