시작 전 logging.level.org.apache.coyote.http11=debug application.properties에 해당 코드를 넣으면 http메세지를 모두 확인 할 수 있다. package hello.upload.controller; import jakarta.servlet.ServletException; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.Part; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.Get..
기본적으로 form에서 값을 보낼 때에 컨텐츠 타입은 디폴트로 application/x-www-form-urlencoded가 기본이 된다. key와 value로 나눠지며 만약 인풋박스에 name이 username이 있다면 username=kim 이런 식의 값을 보내게 된다. 만약 첨부파일을 보내려할 때에는 보통 이런 텍스트 인풋박스와 첨부파일이 한개의 form에 함께 있는 경우가 있다. 함께 전송하기 위해서는 content-type을 multipart/form-data로 변경시킬 필요가 있다. http메시지를 보면 boundary코드에 맞춰 총 3개가 들어간다. 각각 content-dispotion이라는 분류에 맞춰 헤더, 바디 로 들어가게 된다.(content-disposition 줄이 헤더, 값은 바..
- Total
- Today
- Yesterday
- React
- thymleaf
- 향해플러스백엔드
- 컨트
- Java
- 스프링공부
- ArgumentResolver
- jpa api
- JPA
- Intercepter
- 항해플러스
- 리터럴
- hypertexttransferprotocol
- react실행
- 백엔드 개발자 공부
- 인터셉터
- SpringBoot
- 향해99
- 스프링부트
- 백엔드 개발자 역량
- HTTP
- 로그인
- 항해99
- 향해플러스
- BindingResult
- reject
- filter
- rejectValue
- exception
- 예외처리
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |