title: POST API in spring boot not working if DNS is used instead of IP
body: <p>I have a REST API developed in Spring Boot application.</p>
  
  <p>Consider an API: POST "/users" and has a body.</p>
  
  <p>If I call this API using the IP it works but does not work with DNS.</p>
  
  <pre><code>Eg:
    http://abc.io/users -&gt; doesn't work,
    http://xx.xx.xx.xx:8080/wellness/users - &gt; works
  
  My DNS maps to "http://xx.xx.xx.xx:8080/wellness".
  </code></pre>
  
  <p>Note: GET API works fine with DNS also.</p>
  
  <p>Let us know if I need to enable any property on Spring boot application. Any help is appreciated.</p>