| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- mybatis
- SpringKafka
- ApacheFlink
- SQL
- springboot mybatis
- 시스템설정
- SpringBoot Security
- 실시간데이터처리
- SpringBootKafka
- VUE
- ios
- KafkaFlink
- java
- springboot jwt
- 맥북
- 백엔드개발
- ApacheKafka
- RestControllerAdvice
- Spring
- springboot
- java17
- RequestMethodNotSupported
- SpringBoot에러
- KafkaProducer
- 400badrequest
- 405MethodNotAllowed
- mapper
- springboot예외처리
- HttpRequestMethodNotSupportedException
- ControllerAdvice
- Today
- Total
목록전체 글 (148)
생활기록부
CORS Preflight란? OPTIONS 요청이 발생하는 이유와 실패 해결 방법Spring Boot와 React, Vue 같은 Front-end를 연동하다 보면 Network 탭에서 다음과 같은 요청을 볼 수 있습니다.OPTIONS /api/orders직접 작성한 적도 없는데 브라우저가 갑자기 OPTIONS 요청을 보내는 것을 보고 당황할 수 있습니다.그리고 이 요청이 실패하면 실제 API 요청은 아예 실행되지 않을 수 있습니다.브라우저 Console에는 다음과 같은 메시지가 나타날 수 있습니다.Access to fetch at 'http://localhost:8080/api/orders'from origin 'http://localhost:3000'has been blocked by CORS pol..
Spring Security CORS 오류 해결 - SecurityFilterChain 설정 방법Spring Boot에서 CORS 설정을 했는데도 브라우저에서 계속 다음과 같은 오류가 발생하는 경우가 있습니다.Access to fetch at 'http://localhost:8080/api/users'from origin 'http://localhost:3000'has been blocked by CORS policy또는:No 'Access-Control-Allow-Origin' header is presenton the requested resource.분명 WebMvcConfigurer에서 CORS 설정을 추가했는데도 오류가 계속된다면 Spring Security가 요청을 먼저 막고 있는지 확인할 필..
Spring Boot 전역 CORS 설정 방법 - WebMvcConfigurer로 한 번에 적용하기Spring Boot에서 React, Vue 같은 Front-end와 REST API를 연동하다 보면 CORS 오류를 만나는 경우가 있습니다.대표적으로 브라우저에서 다음과 같은 메시지가 나타납니다.Access to XMLHttpRequest at 'http://localhost:8080/api/users'from origin 'http://localhost:3000'has been blocked by CORS policy또는:No 'Access-Control-Allow-Origin' header is presenton the requested resource.간단한 프로젝트라면 Controller에 @Cro..
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..
