model.addattribute做用及用法

1.model.addattribute()的做用 1.往前台传数据,能够传对象,能够传List,经过el表达式 ${}能够获取到html 相似于request.setAttribute("sts",sts)效果同样。函数 2.@ModelAttribute("model")   注解post   2.定义和用法 addAttribute() 函数给 SimpleXML 元素添加一个属性。url
相关文章
相关标签/搜索