> 其他 >
Spring mvc 中model.addAttribute("student",student)请问这句是什么意思
人气:268 ℃ 时间:2020-05-13 01:10:33
解答
按照spring一般的编码习惯,model 应该是contrller里面的Map结构吧.Map里面添加key=“student”,value=“student对象”的意思,最后把这个model返回一个jsp,在jsp页面上就能得到这个student对象了!
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版