What is the restTemplate.exchange() method for?

前端 未结 4 1206
日久生厌
日久生厌 2021-02-02 07:37

Actually what does the restTemplate.exchange() method do?

@RequestMapping(value = \"/getphoto\", method = R         


        
4条回答
  •  礼貌的吻别
    2021-02-02 08:33

    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.

提交回复
热议问题