idea启动spring-boot,报java.lang.NoClassDefFoundError: javax/servlet/ServletContext错误,解决方法:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
把scope注释掉即可;
建议勾上rebuild module on dependency change选项
在settings... -> compiler ->Rebuild module on dependency change