title: Spring Boot Rest : Error 404 not found when sending simple get request via Postman?
body: <p>I'm new postman, just installed it. I have spring boot simple app build with maven
  and run in embedded tomcat through STS.
  I'm try send get request:</p>
  <pre><code>http://localhost/9009/locations/Cntry
  </code></pre>
  <p>Here is the code from the controller:</p>
  <pre><code>@RestController
  @RequestMapping(&quot;locations&quot;)
  @Slf4j
  public class LocationController {
  
      @Autowired
      LocationService  locationService;
      
      @GetMapping(&quot;Cntry&quot;)    
      public List&lt;Country&gt; getCountries() {
          return locationService.getdCountries();
      }
  </code></pre>
  <p>I'm getting 404 error from postman when clicking send:</p>
  <pre><code>{
      &quot;timestamp&quot;: &quot;2021-07-09T03:40:36.764+00:00&quot;,
      &quot;status&quot;: 404,
      &quot;error&quot;: &quot;Not Found&quot;,
      &quot;path&quot;: &quot;/9009/locations/Cntry&quot;
  }
  </code></pre>
  <p>I have 401 error before and I fixed it by comment spring security from pom file (I didn't
  implement security yet). Ideally the spring security should be uncomment.</p>
  <p>Thanks.</p>