Skip to content
Advertisement

How to fetch data from http response entity?

I am using SpringBoot to fetch access Token from my client. I could not separate the Access Token from the responseEntity. Is there a way to Fetch the AccessToken data alone?

Here is the code:

public ResponseEntity generate_Access_token() {

JavaScript

} }

The response:

JavaScript

Advertisement

Answer

Make your life easier, not harder – use plain DTO

JavaScript

and then

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement