maven web项目打war包显示“软件包 javax.servlet.http 不存在"-解决方法

pom.xml 在dependencys 标签内增加以下配置。 然后使用Eclipse操作 maven–update 再打包

 <dependency>
	 <groupId>javax.servlet</groupId>
	 <artifactId>servlet-api</artifactId>
	 <version>2.5</version>
	 <scope>provided</scope>
	</dependency>
	<dependency>
	 <groupId>javax.servlet</groupId>
	 <artifactId>javax.servlet-api</artifactId>
	 <version>3.0.1</version>
	 <scope>provided</scope>
	</dependency>
上一篇:Could not find a package configuration file provided by "Qt5Widgets"


下一篇:No compiler is provided in this environment Perhaps you are