报错
Cannot resolve javax.servlet:servlet-api:3.1
原因
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>3.1</version>
</dependency>
已经改名了
解决
替换为
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
标签:resolve,Cannot,api,3.1,servlet,javax
From: https://www.cnblogs.com/shixuanliu/p/17201261.html