1. 启动tomcat显示build success但无法继续启动的解决方法
![](https://i-blog.csdnimg.cn/blog_migrate/dc8f9d87efbb14ab4991b3b448cbaa0c.png)
2.
Servlet.service() for servlet [jsp] in context with path [/***] threw exception [java.lang.NullPointerException] with root cause
![](https://i-blog.csdnimg.cn/blog_migrate/e9c9f279b31230944632b97014c156cf.png)
![](https://i-blog.csdnimg.cn/blog_migrate/9efa8749dd6af4369deba0951ef4b215.png)
本次解决方法:最初在Build Path里加上了tomcat server的libraries可能有冲突,去掉后在pom文件中添加依赖
![](https://i-blog.csdnimg.cn/blog_migrate/27cb21ba91e74bb21b25bb3758e87f2e.png)
3. The method getDispatcherType() is undefined for the type HttpServletRequest
![](https://i-blog.csdnimg.cn/blog_migrate/38521f7eabd5c28522f55c8d6b5dfc81.png)
应该是是javax.servlet和tomcat的架包冲突,在pom文件把依赖改为3.1后好了
4. 使用springmvc访问时404,无法解析controller
注意是否在web.xml忘记配置
![](https://i-blog.csdnimg.cn/blog_migrate/3f050fd9debe4ea308185a70a5560cc2.png)