title: Spring boot - @Service class calling another @Service class
body: <p>Is it fine to have a <code>@Service</code> annotated class calling another <code>@Service</code> annotated class? Or it is a bad practice?</p>
  <p>Eg.:</p>
  <pre><code>@Service
  public class MyService {
  
      // ...
      
      @Autowired
      private MyOtherService myOtherService;
      
      // ...
  
  }
  </code></pre>
  <p><strong>EDIT - after 3 years</strong></p>
  <p>It's ok to have dependencies from one service to another. This is mainly because of reusability. If circular dependencies happen between two services from the same module, that's ok.</p>
  <p>You should only avoid circular dependencies between modules.</p>