| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- ApacheKafka
- 맥북
- SQL
- mapper
- springboot mybatis
- java17
- RequestMethodNotSupported
- HttpRequestMethodNotSupportedException
- mybatis
- springboot jwt
- KafkaProducer
- ControllerAdvice
- 실시간데이터처리
- 405MethodNotAllowed
- 백엔드개발
- java
- ios
- ApacheFlink
- 시스템설정
- VUE
- KafkaFlink
- springboot예외처리
- RestControllerAdvice
- SpringBoot에러
- SpringBootKafka
- Spring
- SpringBoot Security
- springboot
- 400badrequest
- SpringKafka
- Today
- Total
목록전체 글 (142)
생활기록부
Request method 'GET' is not supported 해결 - 브라우저에서 POST API 호출할 때 발생하는 이유Spring Boot로 API를 개발하다 보면 다음과 같은 오류를 만날 수 있습니다.Request method 'GET' is not supported로그에서는 다음 예외가 함께 보일 수 있습니다.org.springframework.web.HttpRequestMethodNotSupportedException이 오류는 보통 Controller는 POST 요청만 받도록 만들어져 있는데 실제 요청이 GET으로 들어왔을 때 발생합니다.특히 POST API 주소를 브라우저 주소창에 직접 입력했을 때 자주 볼 수 있습니다.예를 들어 Controller가 다음과 같다고 가정해보겠습니다.@P..
Spring Boot 405 Method Not Allowed 원인과 해결 방법 총정리Spring Boot로 REST API를 개발하다 보면 다음과 같은 오류를 만날 수 있습니다.405 Method Not Allowed서버 로그에서는 다음과 같은 메시지가 함께 나타나기도 합니다.org.springframework.web.HttpRequestMethodNotSupportedException:Request method 'POST' is not supported또는:Request method 'GET' is not supported처음 이 오류를 만나면 URL이 잘못된 것인지, Controller가 잘못된 것인지, 요청 데이터가 문제인지 헷갈릴 수 있습니다.하지만 405 Method Not Allowed의 핵..
Spring Boot HttpRequestMethodNotSupportedException 해결 - Request method 'POST' not supported 원인과 405 처리Spring Boot로 REST API를 개발하다 보면 다음과 같은 오류를 만날 수 있습니다.org.springframework.web.HttpRequestMethodNotSupportedException:Request method 'POST' is not supported또는:Request method 'GET' is not supported이 오류는 요청 URL 자체는 존재하지만, 해당 URL에서 현재 요청한 HTTP Method를 지원하지 않을 때 발생합니다.예를 들어 Controller가 다음과 같이 작성되어 있다고 ..
Spring Boot 400 Bad Request 원인 총정리 - 자주 발생하는 오류 7가지와 해결 방법Spring Boot로 REST API를 개발하다 보면 다음 응답을 자주 만나게 됩니다.400 Bad Request문제는 400 Bad Request라는 결과만 봐서는 정확히 무엇이 잘못되었는지 바로 알기 어렵다는 점입니다.같은 400 오류라도 원인은 다양할 수 있습니다.예를 들어:@RequestParam 누락숫자 타입 변환 실패Enum 값 오류@Valid 검증 실패JSON 형식 오류날짜 형식 오류비즈니스 요청값 오류가 모두 400 응답으로 이어질 수 있습니다.그래서 Spring Boot에서 400 오류가 발생했을 때는 HTTP Status만 보는 것이 아니라 실제 발생한 Exception 종류를 확인..
