title: Spring boot 2: Plus (+) sign is not getting encoded in query param
body: <p>Currently I am migrating one of my micro service to spring boot 2 from spring boot 1.x. consider there are two services A and B. Service A calls the rest end point of service B. In query Param service A is passing an alphanumeric string which also contains (+) character ( not always as it's a random generated string). Service B compares this string with the one stored in db and returns the response. </p>
  
  <p>I observed that with version 1.x URL is getting encoded properly. Ex. If I pass (a+b) it gets encoded as a%2Bb and in service B it gets decoded as (a+b). However, with version 2.x it gets encoded as (a+b) only and as a result in service B it gets decoded as (a b) [+ gets decoded to white space]</p>
  
  <p>I am using <strong>UriComponentBuilder</strong> to build the URI and encode() method for encoding the URI. While debugging I found that + character is allowed in URL and that's the reason it doesn't get encoded.</p>
  
  <p><strong>My question is</strong> - Is there a way to change this behaviour so that I get + as %2B . Or, kindly point me to right place, if I am doing something wrong.
  I can share the code as well if needed.</p>