@RequestMapping("/test")
@ResponseBody
public String test(Long id){
return id + "";
}
当请求传入参数不是数字的时候会返回400 Bad Request如何校验传入的这个参数?
相关分类