The @Service annotation in Spring Boot is a specialization of the _____ annotation.

  • @Autowired
  • @Component
  • @Controller
  • @Repository
The @Service annotation in Spring Boot is a specialization of the @Component annotation. Both @Service and @Component are used for component scanning, allowing Spring to identify and manage the annotated class as a Spring bean. While @Controller and @Autowired are important in Spring applications, they serve different purposes and are not specializations of @Service.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *