title: Spring Boot Application - Calling service classes
body: <p>I am new to Spring and Java and am trying to build a simple REST app that takes in an address string, parses it and tries to verify it. </p>
  
  <p>My main project directory looks something like this:</p>
  
  <pre><code>config  
  controller
  exception
  geocoder
  model
  repository
  service 
  Application.java
  </code></pre>
  
  <p>As I am writing the app, I have a need to call the service from outside the controller - in the geocoder module. Is this okay in practice? Would I annotate the class inside the geocoder module with an @Component?</p>
  
  <p>Also, You can take a look at my code here: <a href="https://github.com/taurenk/PinPointGeocoder2" rel="nofollow">https://github.com/taurenk/PinPointGeocoder2</a></p>