I'm starting to use and, so I've seen, the difference between the annotations @Controller
, @Repository
and @Service
is the layer where you have to use it since it could be said that they are an extension / specialization of the @Component
of Spring.
Thus, @Repository
is for the persistence layer, @Service
is for the business layer, and @Controller
is for the presentation layer.
Is that so? Do they only differ at that point or are there more connotations?