Skip to content

Instantly share code, notes, and snippets.

@deepakmehra10
Created June 22, 2020 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepakmehra10/6a89d6a11088814c365e3dc0f0e88d31 to your computer and use it in GitHub Desktop.
Save deepakmehra10/6a89d6a11088814c365e3dc0f0e88d31 to your computer and use it in GitHub Desktop.
// 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