spring的注解@RequestParam获取参数

@RequestMapping("/advicescreen/handleFormUpload/")
 public String handleFormUpload(@RequestParam("name") String name)

如果发送的请求没有参数name,访问/advicescreen/handleFormUpload/会导致400访问错误

你可能感兴趣的:(Spring框架,java)