Eclipse用maven创建SSM工程步骤
参考这三篇文章:
https://www.cnblogs.com/hongmoshui/p/7994759.html
https://blog.csdn.net/cyl1226541/article/details/73381319
https://www.cnblogs.com/knightsu/p/knightsu.html
问题解决:
1.java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
maven下载的lib未指定部署到WEB-INF/lib下
https://www.cnblogs.com/aisam/articles/4686362.html
好像一Clean Maven Dependencies就没了。。。
2.java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException?
少commons-logging.jar,pom.xml中加上即可
https://crunchify.com/org-apache-catalina-lifecycleexception/
3.出现invalid LOC header (bad signature)错误
maven本地仓库下载jar包出现失败,maven test查看哪个jar包有问题,清空jar包所在目录重新maven update
https://blog.csdn.net/u012660464/article/details/53394549
4.Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
<param-value>/WEB-INF/spring-mvc.xml </param-value>
改成
<param-value>classpath:spring-mvc.xml </param-value>
因为配置文件都放在src/main/resources/目录下,部署后是在WEB-INF/classes目录里
https://blog.csdn.net/zt_fucker/article/details/68924511
浙公网安备 33010602011771号