반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- redis
- vue.js
- weblogic 10
- docker-compose
- grafana
- JPA
- Selenium
- spring boot redis
- ChannelPipeline
- cassandra
- WebLogic
- spring cloud
- RabbitMQ
- QueryDSL
- docker compose mysql
- argo cd
- Spring Open Feign
- jmeter
- mybatis
- Redis Sentinel
- KAFKA
- MySQL
- docker
- spring boot
- netflix oss
- Netty
- Docker Compose
- coalesce
- Hibernate
- Airflow
Archives
- Today
- Total
목록feign error decode (1)
IT.FARMER
open feign error decoder custom
오픈페인을 사용하면서 발생되는 오류에 대한 컨트롤을 커스텀 하게 구현 할 수 있다. ErrorDecoder 를 상속받아 구현하면 된다. HTTP method 에 따라 응답값을 확인하고 익셉션을 다르게 설정 한다. 만약 circuit breaker 기능중 retry 기능을 사용하기 위해서는 exception 을 꼭 RetryableException을 사용하여야 한다. 다른 익셉션을 던지면 retry 는 설정해도 동작 되지 않는다. @Slf4j public class GlobalCustomErrorDecoder implements ErrorDecoder { @Override public Exception decode(String methodKey, Response response) { log.warn("gl..
Spring/Spring Cloud
2022. 1. 14. 11:35