Bird
0
0

Which of the following is the correct way to define a feature flag property in Spring Boot's application.properties file?

easy📝 Syntax Q3 of 15
Spring Boot - Advanced Patterns
Which of the following is the correct way to define a feature flag property in Spring Boot's application.properties file?
AnewFeature:enabled=true
Bfeature.newFeature.enabled=true
Cfeature_flag newFeature = true
Denable-feature-newFeature = true
Step-by-Step Solution
Solution:
  1. Step 1: Recall Spring Boot property syntax

    Spring Boot uses dot notation in application.properties.
  2. Step 2: Identify correct syntax

    feature.newFeature.enabled=true uses correct dot notation and key=value format.
  3. Final Answer:

    feature.newFeature.enabled=true -> Option B
  4. Quick Check:

    Spring Boot properties use dot notation [OK]
Quick Trick: Use dot notation for properties in application.properties [OK]
Common Mistakes:
  • Using colons instead of equals
  • Using spaces instead of equals
  • Incorrect key naming conventions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes