@RequestParam和不用的区别以及和 @PathVariable 的区别,简单易懂

@RequestParam(将请求参数绑定到方法参数)    1:简单地说,不用的话,前台jsp页面的参数名称必须和此处方法的形参名字同样: 好比:前台是userId  @RequestMapping("/test2")     public String test2(int userId, int age, Date date, User user) { . .. }   2:用@Request
相关文章
相关标签/搜索