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."
Loading...
Related Quiz
- In a reactive Spring Boot application, _____ is used to handle back pressure in a reactive stream.
- Which of the following is true about the deleteById method of a JpaRepository?
- Which of the following is true about the deleteById method of a JpaRepository?
- To test security configurations in Spring Boot applications, you should consider using _____.
- Which of the following Spring Data JPA repositories generally provides methods for CRUD operations?