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.
My main project directory looks something like this:
config
controller
exception
geocoder
model
repository
service
Application.java
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?
Also, You can take a look at my code here: http://ift.tt/1ycpZ6l
Aucun commentaire:
Enregistrer un commentaire