| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- SpringBoot에러
- java
- HttpRequestMethodNotSupportedException
- RequestMethodNotSupported
- springboot예외처리
- mapper
- mybatis
- 백엔드개발
- SpringKafka
- ApacheFlink
- VUE
- 시스템설정
- SpringBootKafka
- KafkaFlink
- 맥북
- Spring
- ApacheKafka
- ControllerAdvice
- java17
- springboot jwt
- 400badrequest
- ios
- KafkaProducer
- springboot mybatis
- SQL
- RestControllerAdvice
- 실시간데이터처리
- springboot
- 405MethodNotAllowed
- SpringBoot Security
- Today
- Total
목록전체 글 (145)
생활기록부
Spring Boot @RequestMapping method 설정 실수 - HttpRequestMethodNotSupportedException 해결 방법Spring Boot로 REST API를 개발하다 보면 다음과 같은 오류를 만날 수 있습니다.org.springframework.web.HttpRequestMethodNotSupportedException:Request method 'POST' is not supported또는:Request method 'GET' is not supported최근에는 @GetMapping, @PostMapping, @PutMapping, @DeleteMapping을 많이 사용하지만, 기존 프로젝트나 레거시 코드에서는 다음과 같은 형태도 자주 볼 수 있습니다.@Requ..
Spring Boot PUT, DELETE 405 Method Not Allowed 해결 - 요청이 지원되지 않는 원인 정리Spring Boot로 REST API를 개발하다 보면 GET, POST는 잘 동작하는데 PUT이나 DELETE 요청에서만 다음과 같은 오류가 발생하는 경우가 있습니다.405 Method Not Allowed또는 서버 로그에서:org.springframework.web.HttpRequestMethodNotSupportedException:Request method 'PUT' is not supported혹은:Request method 'DELETE' is not supported와 같은 메시지를 볼 수 있습니다.이 오류는 보통 요청 URL은 맞지만 해당 HTTP Method를 처리하..
Request method 'POST' is not supported 해결 - @GetMapping, @PostMapping 확인 방법Spring Boot로 API를 개발하다 보면 다음과 같은 오류를 만날 수 있습니다.Request method 'POST' is not supported로그에서는 다음 예외가 함께 나타날 수 있습니다.org.springframework.web.HttpRequestMethodNotSupportedException이 오류는 대부분 Controller는 POST 요청을 처리하지 않는데 실제 요청이 POST로 들어왔을 때 발생합니다.예를 들어 Controller가 다음과 같다고 가정해보겠습니다.@GetMapping("/api/orders")public String getOrder..
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..
