1
JavaIntermediate#spring
All are stereotype annotations registering a class as a Spring bean. @Service marks business logic, @Repository marks DAO/persistence layer classes (adds exception translation), @Controller marks MVC web controllers, and @Component is the generic base annotation.
@Repository
class UserRepository {}
@Service
class UserService {}
@RestController
class UserController {}