IDEA启动Springboot时,解决报错java.lang.NoClassDefFoundError: javax/servlet/Filter

如下所示,将spring-boot-starter-tomcat依赖中的<scope>provided</scope>注释掉
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->
</dependency>
如下所示,将spring-boot-starter-tomcat依赖中的<scope>provided</scope>注释掉
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->
</dependency>

猜你喜欢

转载自www.cnblogs.com/qianzf/p/11818732.html
今日推荐