Created
June 22, 2020 21:33
-
-
Save deepakmehra10/6a89d6a11088814c365e3dc0f0e88d31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Success | |
@GetMapping("success/users") | |
@CircuitBreaker(name = USER_SERVICE) | |
public Mono<ResponseEntity> getUser(@PathVariable String id) throws Exception { | |
return Mono.just(ResponseEntity.ok(User.builder().id("1").name("Deepak").build())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment