Setting Security cookie using RestTemplate

前端 未结 3 1226
长情又很酷
长情又很酷 2021-01-04 21:48

I am trying to call a Restful JSON service using RestTemplate and Jackson json convertor. Now in order to call the service I need to pass in a Security cookie. I can achiev

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-04 22:23

    This is how it has worked for us

    requestHeaders.add("Cookie", "JSESSIONID=" + session.getValue());
    

提交回复
热议问题