In Spring Boot, _____ is used to enable caching capability in the application.
- @CacheConfig
- @Cacheable
- @EnableCaching
- @Caching
In Spring Boot, the @EnableCaching annotation is used to enable caching capability in the application. It allows you to use caching annotations like @Cacheable and @CacheEvict to control caching behavior. The other options are related to caching but not used for enabling caching at the application level.
Loading...
Related Quiz
- In Spring Boot, to create a condition based on the presence or absence of a specific bean, the _____ annotation can be used.
- In Mockito, the _____ method can be used to stub a return value for a method call.
- You are creating a Spring Boot project intended to be deployed on a cloud platform. What considerations and configurations would you implement to ensure smooth deployment and execution on the cloud environment?
- Imagine you are starting a new Spring Boot project where you need to support both web applications and RESTful APIs. How would you set up the project to accommodate both requirements effectively?
- When configuring a CacheManager in Spring Boot, the _____ property can be used to set the TTL values for cache entries.