Actually what does the restTemplate.exchange() method do?
restTemplate.exchange()
@RequestMapping(value = \"/getphoto\", method = R
The exchange method executes the HTTP method against the specified URI template, passing in the parameters for replacement. In this case it gets an image for a person entity for its Id parameter and returns the byte array for it.