Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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