帮我换成maven的写法: compileOnly 'javax.servlet:javax.servlet-api:4.0.1' runtimeOnly 'javax.servlet:javax.servlet-api:4.0.1'
时间: 2023-09-18 17:07:50 浏览: 128
解决java编译错误( 程序包javax.servlet不存在javax.servlet.*)
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
阅读全文