Skip to content

Instantly share code, notes, and snippets.

@radutoev
Created March 14, 2018 20:04
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 radutoev/954fb313bd44a65d925607ecfc3f5ee4 to your computer and use it in GitHub Desktop.
Save radutoev/954fb313bd44a65d925607ecfc3f5ee4 to your computer and use it in GitHub Desktop.
@Autowired
MyService myService;
@GetMapping
public ResponseEntity get() {
logger.info("User: {}", accessToken.getSubject());
String status = myService.callB();
return status.equals("ok") ?
ResponseEntity.ok().build() :
ResponseEntity.badRequest().build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment