如何将2d数组从javascript传递给java spring控制器

时间:2017-03-16 12:38:13

标签: javascript java arrays spring-mvc

所以我有以下样本 表,我需要将每行每个单元格的值传递给控制器​​。

sample table

现在,一旦我点击TEST按钮,每个单元格值将被放置在一个数组中。结果将是这样的:

[
  [
    {"key":"A","value":"1"},
    {"key":"B","value":"2"},
    {"key":"C","value":"3"},
    {"key":"D","value":"4"},
    {"key":"E","value":"5"},
  ],
  [
    {"key":"A","value":"6"},
    {"key":"B","value":"7"},
    {"key":"C","value":"8"},
    {"key":"D","value":"9"},
    {"key":"E","value":"0"},
  ]
]

我如何将这种阵列传递给我的弹簧控制器? 任何帮助将不胜感激。谢谢!

0 个答案:

没有答案