spring mvc 提交数组等复杂类型

    使用jquery提交,比如monthIncome的值是一个数组,在Java里用request.getParameterValues("monthIncome");取不到值,要这样才行request.getParameterValues("monthIncome[]")。
如果使用struts又不一样,这时在提交前加上
$.ajaxSettings.traditional = true;就不会出错,见http://stackoverflow.com/questions/3508550/http-array-parameters-with-struts-2-via-an-ajax-call:
原文地址:https://www.cnblogs.com/zhujiabin/p/4968778.html