The _____ is a specialized form of the @Component annotation intended to represent the application logic in Spring Boot.

  • @Repository
  • @Controller
  • @Service
  • @Configuration
In Spring Boot, the "@Service" annotation is a specialized form of the "@Component" annotation used to represent the application's business logic. It helps Spring identify the class as a service component, allowing it to be automatically detected and used within the application context. The other options, such as "@Repository," "@Controller," and "@Configuration," serve different purposes and are not specifically intended for application logic in the same way as "@Service."
Add your answer
Loading...

Leave a comment

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