title: Postman :"status": 404, "error": "Not Found", "message": "Not Found",
body: <pre class="lang-java prettyprint-override"><code>@RestController()
  @RequestMapping(&quot;/v1/e&quot;)
  public class EC {
      @PostMapping(path = &quot;{document}&quot;, consumes = &quot;application/json&quot;, produces = &quot;application/json&quot;)
      public ResponseEntity&lt;InputStreamResource&gt; createDocument(@PathVariable Dtype document,@RequestBody String data){
          //code
      }
  </code></pre>
  <p>I am trying to make a post request on postman below is the URL I am using to post</p>
  <p>http://localhost:8080/v1/e?document=E_PC</p>
  <p>However, I am getting the following error on postman</p>
  <pre><code>{
      &quot;timestamp&quot;: &quot;2020-08-05T02:22:03.008+0000&quot;,
      &quot;status&quot;: 404,
      &quot;error&quot;: &quot;Not Found&quot;,
      &quot;message&quot;: &quot;Not Found&quot;,
      &quot;path&quot;: &quot;/v1/e&quot;
  }
  </code></pre>