可能是因为没有包导致,可以试一下导入 servlet-api.jar 包再去创建下试试
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
可能是因为没有包导致,可以试一下导入 servlet-api.jar 包再去创建下试试
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>