简单Servlet的get/post请求获取参数
一.通过maven创建一个servlet项目 二。将创建好的项目转化为web项目 三,pom文件 <? xml version ="1.0" encoding ="UTF-8" ?> <project xmlns ="http://maven.apache.org/POM/4.0.0" xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance" xsi :schemaLocation ="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > <modelVersion> 4.0.0 </modelVersion> <groupId> com.huawei </groupId> <artifactId> servlet_demo </artifactId> <version> 1.0-SNAPSHOT </version> <dependencies> <!-- JUnit配置 --> <dependency> <groupId> junit </groupId> <artifactId> junit </artifactId> <version> 3.8.1 </version> <scope> test </scope>