IDEA报错java.lang.ClassNotFoundException: javax.servlet.Filter
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!-- provided 表明该包只在编译和测试的时候使用,去除默认的tomcat -->
<!--<scope>provided</scope>-->
<version>1.2.4.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>