How can you configure an array of values using the YAML configuration file in Spring Boot?

  • By using square brackets [].
  • By separating values with commas.
  • By using angle brackets < >.
  • By enclosing values in curly braces { }.
In a YAML configuration file in Spring Boot, you can configure an array of values by using square brackets []. This format allows you to define a list of items. Each item in the list can be a separate value or a key-value pair. The other options are not the correct syntax for defining arrays in YAML configuration files.
Add your answer
Loading...

Leave a comment

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