ideacan't resolve the symbol "servlet"

xiaoxiao2021-02-28  145

1.在pom.xlm文件中添加依赖。

<dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-servlet-api</artifactId> <version>9.0.0.M22</version> <scope>provided</scope> </dependency>

2.手动导入servlet-api jar包。

添加jar 包

在Tomcat/lib路径里面

转载请注明原文地址: https://www.6miu.com/read-27112.html

最新回复(0)