Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
[#67] 어노테이션 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoonjae committed Jan 27, 2022
1 parent ad98fe3 commit 348a8b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public class KakaoAddressApi {
public static final String KAKAO_URL = "/v2/local/geo/coord2address.json";
public static final String CUSTOM_CIRCUIT_BREAKER = "customCircuitBreaker";

/**
* @CircuitBreaker
* resilience4j Spring Boot2 스타터에서 제공되는 어노테이션으로 AOP 측면을 제공하는 역할입니다.
* CircuitBreaker라는 것을 명시하고 이름과 콜백 메소드를 지정할 수 있습니다.
*/
@CircuitBreaker(name = CUSTOM_CIRCUIT_BREAKER, fallbackMethod = "fallbackMethod")
public ResponseEntity<KakaoApiGetAddressResponse> getAddressBySpot(
KakaoApiGetAddressRequest getAddressRequest) {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mybatis:
api:
authorization: ${AUTHORIZATION}

# resilience4j
resilience4j.circuitbreaker:
configs:
default:
Expand Down

0 comments on commit 348a8b4

Please sign in to comment.