model.addattribute()的作用

1.往前台传数据,可以传对象,可以传List,通过el表达式 ${}可以获取到,

类似于request.setAttribute("sts",sts)效果一样。

2.@ModelAttribute("model")   注解

3.

猜你喜欢

转载自blog.csdn.net/ZGX4312651/article/details/84985010