title: How to specify prefix for all controllers in Spring Boot?
body: <p>I have controller mappings to <code>/user</code> and <code>/order</code>:</p>
  
  <pre><code>@RestController
  @RequestMapping("/users")
  public class UserController {
      ...
  }
  
  @RestController
  @RequestMapping("/orders")
  public class OrderController {
      ...
  }
  </code></pre>
  
  <p>I want to access these by URL at <code>http://localhost:8080/api/users</code>  and <code>http://localhost:8080/api/orders</code>, respectively.</p>
  
  <p>How do I achieve this in Spring Boot? </p>