![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
maven
nciasd
perl,python,java,oracle,Linux,docker,AI,math
展开
-
org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servle
调试Spring MVC时发现如下异常:java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.Servlet问题出在servlet-api.jar上,tomcat部署springMVC项目时是不用这个包的,而用maven构建项目时需转载 2016-01-03 23:25:53 · 1428 阅读 · 0 评论 -
安装maven
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz tar -xzvf apache-maven-3.5.0-bin.tar.gzexport PATH=/opt/apache-maven-3.5.0/bin:$PATH原创 2017-06-16 15:21:25 · 344 阅读 · 0 评论