title: Spring Boot register API calls without context path
body: <p>I have an application running on External tomcat where context path will be created automatically for war file name (smth like <a href="http://localhost:8080/testApp" rel="nofollow noreferrer">http://localhost:8080/testApp</a>). I have existing js calls that are calling some existing rest services. These js calls are made in such a way that they <strong>do not include context path</strong> (like <a href="http://localhost:8080/v1/getUsersList" rel="nofollow noreferrer">http://localhost:8080/v1/getUsersList</a>), but Rest APIs are automatically registered using context path</p>
  
  <pre><code>@Controller
  @RequestMapping("/v1")
  public class MyController {
  
      @GetMapping("/getUsersList")
      public ResponseEntity getUsers....{}
  }
  </code></pre>
  
  <p>So for this I will have API registered as <a href="http://localhost:8080/testApp/v1/getUsersList" rel="nofollow noreferrer">http://localhost:8080/testApp/v1/getUsersList</a></p>
  
  <p>Please advise what to do with this mismatch (pls note I cannot modify code how js api calls are made, I can update Controllers and add some properties in Tomcat conf).
  Thanks</p>