title: @RequestParam return null value from Postman
body: <p>I am trying to make a login Restful API using Spring Boot. I am using <strong>Postman</strong> to test API. But When I am passing email and password through postman it returns null parameters. Because of that, my other functionalities are not working. Here is my code:</p>
  <p><strong>LoginController</strong></p>
  <pre><code>@PostMapping(&quot;/login1&quot;)
  @ResponseBody
  public Response1 login(@RequestParam(name=&quot;email&quot;,required=false) String email, @RequestParam(name=&quot;password&quot;,required=false) String password) {    
          
         System.out.println(&quot;Email is:&quot;+email);
         System.out.println(&quot;Password is:&quot;+password);
         return lgservice.checkLogin(email, password);      
  }
  </code></pre>
  <p><strong>PostMapping URL:</strong> http://localhost:8080/login1
  I am sending the following data through postman:</p>
  <pre><code>{
      &quot;email&quot;: &quot;Sbjain@gmail.com&quot;,
      &quot;password&quot;: &quot;sbj123&quot;
      
  }
  </code></pre>
  <p>My Expected Output is this:</p>
  <pre><code>{
      &quot;code&quot;: 200,
      &quot;status&quot;: &quot;Success&quot;,
      &quot;message&quot;: &quot;Login Successfull!&quot;,
      &quot;college&quot;: [
       {
         &quot;clgId&quot;: 50,
         &quot;name&quot;: &quot;SB Jain&quot;,
         &quot;email&quot;: &quot;Sbjain@gmail.com&quot;,
         &quot;city&quot;: &quot;nagpur&quot;
       }
      ]
  }
  </code></pre>
  <p>But I am getting this:</p>
  <pre><code>{
      &quot;code&quot;: 500,
      &quot;status&quot;: &quot;Failed&quot;,
      &quot;message&quot;: &quot;Please enter valid email and password&quot;,
      &quot;isSuccess&quot;: false
  }
  </code></pre>
  <p><strong>Logs</strong></p>
  <pre><code>2021-05-07 17:18:48.750  INFO 11448 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
  2021-05-07 17:18:48.757  INFO 11448 --- [           main] s.c.CunsultustodayWebServicesApplication : Started CunsultustodayWebServicesApplication in 4.246 seconds (JVM running for 5.143)
  2021-05-07 17:18:56.665  INFO 11448 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
  2021-05-07 17:18:56.665  INFO 11448 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
  2021-05-07 17:18:56.666  INFO 11448 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
  Email is:null
  Password is:null
  </code></pre>
  <p><strong>If I am doing anything wrong please guide me. Thanks!</strong></p>