title: How to handle invalid/extra special characters & = in request url-SpringBoot?
body: <p>I have a Rest service where get call if I send multiple invalid/extra <code>&amp;</code> and <code>=</code> characters then also my endpoint does not throw any error. I would like to throw back <code>invalid request</code> error if url contains any extra special character like <code>&amp;</code> or <code>=</code>.
  for example:</p>
  <pre><code>    http://localhost:8080/myservice?rollNo=03456789321&amp;school=Myschool   //This is Okay for me
      http://localhost:8080/myservice?rollNo=03456789321&amp;school=    //should throw error as school is not having value
      http://localhost:8080/myservice?rollNo=03456789321&amp;&amp;&amp;&amp;school=Myschool 
    //should throw error as &amp;&amp;&amp;&amp; is multiple where it should only one
      http://localhost:8080/myservice?rollNo=03456789321&amp;=   //should throw error as &amp;= is there at end having no sence.
  </code></pre>
  <p>Note that , I am hitting these request from postman , and I have doubt that postman do something with these parameters, cause I am not able to find these extra characters in spring boot while debugging.</p>
  <ol>
  <li>Any way through which i can get whole request url in my controller so that I can find out for these charecters comming?</li>
  <li>Any built in springboot annotation is there to handle such a cases?</li>
  </ol>