How can you define a property in the YAML configuration file in Spring Boot?

  • Using curly braces {}
  • Using double quotes ""
  • Using indentation
  • Using square brackets []
Properties in a YAML configuration file in Spring Boot are defined using indentation. YAML relies on proper indentation to define hierarchy and structure, making it easy to read and write. Curly braces, square brackets, and double quotes are not used to define properties in YAML.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *