Spring ModelAttribute注解

Spring ModelAttribute注解,主要有三个作用: 1. 注解在参数上。 绑定请求参数到命令对象,并把命令对象添加到Model,用于视图页面展示。 @RequestMapping("/save")   public String save(@ModelAttribute(“bwf”) Company bwf) {       service.save(bwf);       retu
相关文章
相关标签/搜索