Bird
0
0

What does the @EnableCaching annotation do in a Spring Boot application?

easy📝 Conceptual Q1 of 15
Spring Boot - Caching
What does the @EnableCaching annotation do in a Spring Boot application?
AActivates Spring's annotation-driven cache management capability
BDisables all caching in the application
CAutomatically clears all caches on application startup
DConfigures database connection pooling
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of @EnableCaching

    This annotation tells Spring to look for caching annotations and enable cache management.
  2. Step 2: Identify what it activates

    It activates Spring's annotation-driven cache management, allowing use of @Cacheable and others.
  3. Final Answer:

    Activates Spring's annotation-driven cache management capability -> Option A
  4. Quick Check:

    @EnableCaching = Activates caching [OK]
Quick Trick: Use @EnableCaching to turn on caching support [OK]
Common Mistakes:
  • Thinking it disables caching
  • Confusing it with database config
  • Assuming it clears caches automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes