标签:
@RequestMapping(value="/testMethod",method=RequestMethod.POST)
public String testMethod(){
System.out.println("testMethod");
return "success";
}
<a href="springmvc/testMethod">测试方法请求</a>
<form action="springmvc/testMethod" method="post">
<input type="submit" value="提交">
</form>
03-SpringMVC_RequestMapping_请求方式
标签:
原文地址:http://www.cnblogs.com/mentorStudio/p/4819190.html