java.lang.NoClassDefFoundError: HttpServletRequest

在eclipse里启动tomcat报错,错误日志:Caused by: java.lang.ClassNotFoundException: HttpServletRequest

在build path里的tomcat的版本不对,

解决方案:

Right click on the project in eclipse Properties -> Java Build Path -> Add library -> Server Runtime Library -> Apache Tomcat

原文地址:https://www.cnblogs.com/50614090/p/7767290.html