맛있는 개발자의 기록 일기
  • 홈
  • 관리창
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • 분류 전체보기 (84)
      • Java (74)
      • Food (2)
      • Java 기초 (0)
      • Java 심화 (0)
      • Language (4)
        • Java (4)
      • Framework (2)
        • Spring (2)
      • DevOps (1)
        • Git (1)
      • Cloud (1)
        • Amazon Cloud (1)
  • 홈
  • 태그
  • 방명록
Java

[Spring] Front에서 보낸 데이터를 서버에서 받는 몇 가지 방법

서버와의 연동 작업을 진행하면서, 제일 중요하다고 생각하는 건 데이터를 어떤 식으로 주고받을지가 제일 중요하다고 생각한다 1. 배열 전송하기 Clinet 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 @PostM..

2022. 9. 27. 15:08
  • «
  • 1
  • »
Powered by Privatenote Copyright © 맛있는 개발자의 기록 일기 All rights reserved. TistoryWhaleSkin3.4

티스토리툴바