问题描述 报出java.lang.ClassNotFoundException Servlet.service() for servlet [tomcat.com.MyTestServlet] in context with path [/MyTest] threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: net.sf.json.JSONO
java.lang.ClassNotFoundException: javax.servlet.Filter:有两个原因:(1)在maven中的作用域,不能是provided,需要是compile就是默认的scope(2)spring-boot-starter-tomcat的版本bug,换个新的或旧的版本试试 I Started a new project with Spring Boot 1.2.3. I'm getting error java.lang.NoClassDefFoundE