What’s the difference between @component, @repository & @service annotations in spring?
Answer / Manish
@Component scans and instantiates any Spring-managed beans. @Repository is used for data access layer components (such as daos). @Service is a more generic alternative to both @Component and @Repository, and is typically used for business logic layers.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between model and modelmap?
What are important spring projects?
What is difference between @controller and @restcontroller?
Is spring boot a microservice framework? : Spring Boot
What is the difference between autowiring and dependency injection?
What is spring ioc container?
What is @pathparam?
What is @controller annotation in spring?
Is spring an open source?
What is the use of dispatcher servlet?
Why do we need view resolver in spring mvc and what is an internal view resolver in spring?
Why dependency injection is required?