springmvc 数据绑定时,如何自动接受复合对象(已封装Bean)
如:
Bean{
map<Long,List<T>> map;
}
Bean{
map<Object,List<T>> map;
}
Bean{
map<Long,map<Integer,Integer>> map;
}
Bean{
map<Long,map<Integer,List<T>>> map;
}
....
求大神解答
springmvc 数据绑定时,如何自动接受复合对象(已封装Bean)
如:
Bean{
map<Long,List<T>> map;
}
Bean{
map<Object,List<T>> map;
}
Bean{
map<Long,map<Integer,Integer>> map;
}
Bean{
map<Long,map<Integer,List<T>>> map;
}
....
求大神解答
8 回答6.5k 阅读
4 回答701 阅读✓ 已解决
2 回答3.4k 阅读
3 回答1.9k 阅读✓ 已解决
1 回答2.2k 阅读✓ 已解决
1 回答2.1k 阅读✓ 已解决
1 回答972 阅读✓ 已解决
在Controller里直接指定参数为Map是不行的,需要封装一个Bean来接收数据。可以看下这个视频:http://www.imooc.com/learn/558