[Spring] Ajax를 이용해 데이터를 서버로 보내는 몇 가지 방법
1. 배열 전송하기 Client Method : POST Content-type : application/x-www-form-urlencoded; charset=UTF-8 $.ajax({ url: "/test", dataType: "json", contentType: "application/x-www-form-urlencoded; charset=UTF-8", type: "post", data: {ids : [1,2,3]}, success: function (res) { }, error: function (request, status, error) { } }); Server @PostMapping(value = "/test") @ResponseBody @ResponseStatus(HttpStatus.NO_..