如果对象是泛型,要怎样提交到controller?
html表单对象不存在泛型.
如果要提交对象的话 user.id. user.name controller中可以封装.
没太明白~~~
“对象”从哪里来?它是什么?告诉我一些它的细节。
“提交”是html里那个submit吗?
HTML里怎么会有对象?又怎么会有泛型?
是提交数组吧? 后台可以使用request.getParameterValues(arg0); 来接.
比如:
@RequestMapping(value = "/demo/deductionScore", method = RequestMethod.POST)
public void deductionScore(HttpServletRequest request, HttpServletResponse response) {
// request.getParameterValues(arg0);
}