title: Caused by: java.net.URISyntaxException: Illegal character in query at index 111 : Error Beacuse of {} in URI
body: <p>I identified the error is because of below Curly Braces in the URI 
  <code>{2019-06-11T00:00:00%20TO%202019-06-11T23:59:59}</code></p>
  
  <p>I also tried adding the <code>FilterRegistrationBean</code>, but it didn't work</p>
  
  <pre><code>@Bean
  public FilterRegistrationBean filterRegistrationBean() {
      FilterRegistrationBean registrationBean = new FilterRegistrationBean();
      CharacterEncodingFilter characterEncodingFilter = new CharacterEncodingFilter();
      characterEncodingFilter.setForceEncoding(false);
      characterEncodingFilter.setEncoding("UTF-8");
      characterEncodingFilter.setForceRequestEncoding(false);
      characterEncodingFilter.setForceResponseEncoding(false);
      registrationBean.setFilter(characterEncodingFilter);
      registrationBean.addUrlPatterns("/*");
      return registrationBean;
  }
  
  
  
  
  private static class EmbeddedTomcatCustomizer implements 
          WebServerFactoryCustomizer&lt;TomcatServletWebServerFactory&gt; {
  
      @Override
      public void customize(TomcatServletWebServerFactory factory) {
          factory.addConnectorCustomizers((TomcatConnectorCustomizer) connector -&gt; {
              connector.setAttribute("relaxedPathChars", "&lt;&gt;[\\]^`:{|}");
              connector.setAttribute("relaxedQueryChars", "&lt;&gt;[\\]^`:{|}");
          });
      }
  }
  </code></pre>