- JSPs only permit GET POST or HEAD:
@RequestMapping(value={"/testTest/{id}"}, method=RequestMethod.PUT)
@ResponseBody //添加这一注解
public String putMethod(@PathVariable int id){
return "apage";
}
@RequestMapping(value={"/testTest/{id}"}, method=RequestMethod.PUT)
@ResponseBody //添加这一注解
public String putMethod(@PathVariable int id){
return "apage";
}