StringMVC @RequestMapping method属性
@RequestMapping(value="/testMethod",method=RequestMethod.POST)
public String testMethod(){
System.out.println("testMethod");
return SUCCESS;
}
访问需要指定方法:
<form action="springmvc/testMethod" method="post">
<input type="submit" value="submit">
</form>