title: Spring MVC: How to call @Service class from another project
body: <p>I'm having a problem right now, Is it possible to use anotated @Service class from another Maven Spring MVC project? I've already done this step: Build Path -> Configure Path -> Add Project</p>
  
  <p>Now, I'm trying to use some annotated service method from added project.</p>
  
  <p>the following code is my controller class and i want to use CustomerService class method from another project which I already added in configure path.</p>
  
  <h2>CustomerController.java</h2>
  
  <pre><code>//this class is from another project
  private CustomerService customerService;
  
  public ModelAndView searchCustomer(@RequestParam String lastname) {
      CustomerService customerService = this.customerService.findByLastName(lastname);
  
  }
  </code></pre>
  
  <p>Or is there any alternate way to use annotated Service class from another project?</p>
  
  <p>Thanks in advance..</p>