When IDEA start Springboot, solve error java.lang.NoClassDefFoundError: javax / servlet / Filter

As shown, the spring-boot-starter-tomcat DEPENDENCE <scope> provided </ scope> commented
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->
</dependency>
As shown, the spring-boot-starter-tomcat DEPENDENCE <scope> provided </ scope> commented
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->
</dependency>

Guess you like

Origin www.cnblogs.com/qianzf/p/11818732.html