<form action="/user/testParam?username=zhangsan" method="get">
<input type="submit" value="提交">
</form>
提交时访问的路径为http://localhost:8080/user/testParam
<form action="/user/testParam?username=zhangsan" method="post">
<input type="submit" value="提交">
</form>
提交时访问的路径为提交时访问的路径为http://localhost:8080/user/testParam?username=zhangsan