首页 > 编程语言 >maven 遇到Cannot resolve javax.servlet:servlet-api:3.1

maven 遇到Cannot resolve javax.servlet:servlet-api:3.1

时间:2023-03-09 20:22:05浏览次数:42  
标签:resolve Cannot api 3.1 servlet javax

报错

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

相关文章