title: How to expose a remote controller
body: <p>I need help at Spring</p>
  
  <p>I want to send request on the remote controller (http://123.123.123.123/vehicles/all)...</p>
  
  <p>example.. </p>
  
  <pre><code>@Controller
  @RequestMapping("/vehicles")
  public class AutoController {
  
      AutoService autoserv;
  
      @Autowired
      public AutoController(AutoService autoserv) {
          this.autoserv = autoserv;
      }
  
      @RequestMapping(value = "/all")
      public Result&lt;Car&gt; all() {
          List&lt;Car&gt; autlst = autoserv.getAuto();
          return new Result&lt;Car&gt;(autlst);
      }
  }
  </code></pre>
  
  <p>from my a local application and get response List..
  How does that..? Thanks</p>