How to consume restTemplate response when response body is different on different status code

26 Views Asked by At

While calling the api, the response I get is either json object or array of string on basis of different status code. How do I consume this using restTemplate

0

There are 0 best solutions below