-
Notifications
You must be signed in to change notification settings - Fork 0
Spring Annotation
Davide Matta edited this page Nov 14, 2018
·
1 revision
- @Component: A spring component. Other stereotypes implement this interface.
- @Service: Business logic, no assumption about the client. Should not depend upon Spring MVC, Servlet API, etc.
- @Controller: Tied to the Spring API or servlet API. Annotates classes at the presentation layer, capable of request mapping.
- @Repository: A class that interfaces a DB at the persistance layer. All classes that have access to the DB, I.E DAO (Data Access Object).
- @Entity: A database Entity. Every class that implements @Entity should be/reference a DB table.