Bird
0
0

How should you define a property named logging.level.root with value DEBUG in application.properties?

easy📝 Syntax Q3 of 15
Spring Boot - Application Configuration
How should you define a property named logging.level.root with value DEBUG in application.properties?
Alogging.level.root => DEBUG
Blogging.level.root: DEBUG
Clogging.level.root=DEBUG
Dlogging.level.root - DEBUG
Step-by-Step Solution
Solution:
  1. Step 1: Understand property file syntax

    Spring Boot's application.properties uses key-value pairs separated by an equals sign =.
  2. Step 2: Identify correct syntax

    The correct syntax is key=value, so logging.level.root=DEBUG is valid.
  3. Final Answer:

    logging.level.root=DEBUG -> Option C
  4. Quick Check:

    Check for equals sign separator [OK]
Quick Trick: Use '=' to assign values in application.properties [OK]
Common Mistakes:
  • Using colon ':' instead of '='
  • Using arrows or dashes instead of '='
  • Adding spaces around '=' incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes