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对象了!
推荐
猜你喜欢
- 我想问一道政治题的答案
- Why didn‘t you turn off the light last night,Tom?But I remembered ( )
- 罗摩衍那的衍拼音怎么拼
- 怎么填This is a true story.It happened in Amsterdam,Holland 31) the early
- vegetable,strawberry,fruit,egg,bream既是可数名词又是不可数名词的有哪些?
- 已知a=(3,4),b=(5,12),a与b的夹角的余弦为多少?向量的题,
- 挖一条长4分之3的水道第一周挖了3分之1,第2周挖3分之一千米.两周共挖了多少千米?
- A m__ repairs cars,vans and minibuses.