How do I pass an array to a Spring controller method with jquery ajax

后端 未结 3 1548
孤城傲影
孤城傲影 2021-02-13 18:44

Here\'s my ajax call:

 $.ajax({
     type: \'GET\',
     url: contextPath + \'/test/location\',
     data: {\'objectValues\': object.objectValues },
     datatyp         


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-02-13 19:26

    try setting your ajaxSettings to traditional.

    jQuery.ajaxSettings.traditional = true;
    

提交回复
热议问题