I am getting error when I hit a URL which contains special characters in query parameters using RestTemplate.
My URL is something like this
https://someendpoint?q=countryCode:(AB+yz)&q=type.code:12345&q=banner.code:A1&q=openDate[*+TO+NOW%2B3MONTH]%20&q=!date:[*+TO+NOW]
Can someone please help me how to encode such type of URL using RestTemplate. This URL works fine when I hit through Browser or Postman.