@RequestMapping(value="index",method={RequestMethod.GET,RequestMethod.POST})
public String index(){
return "index.html";
}
SpringMVC中RequestMethod同时支持POST和GET访问
点赞
收藏
SpringMVC中RequestMethod同时支持POST和GET访问
@RequestMapping(value="index",method={RequestMethod.GET,RequestMethod.POST})
public String index(){
return "index.html";
}