阅读(4652)
赞(1)
POST/GET限制
2017-05-31 12:37:30 更新
在Action方法中,如果需要限制方法的访问方式的话,可以使用注解来指定,如下
@ActionAnnotation(method=RequestMethod.POST)
public void h7()
{
out.print("h7 hello word");
}
上面表示h7()方法,只能以post方式访问,get方式访问时报404错误
默认为NONE方式不限制