String url = "http://localhost:8080/get/{var1}?var2={var2}";
I am using restTemplate.postForEntity(url, entity, String.class, var1, var2); //where var1, var2 are uriVariables
Now I am getting some error while I am trying to hit via restTemplate and I believe it might be due to incorrect positioning of the uriVariables. So is there a way to get the URL information that is generated by the restTemplate object. So that I can check whether the restTemplate is hitting correct endpoint or not.