VMware vRealize Automation 8.x (2022) — Question 40
Spring Boot will find and load property files in which of the following? (Choose the best answer.)
Answer options
- A. A *.properties file matching the name of the class annotated with @SpringBootApplication.
- B. config.properties or config.yml, usually located in the classpath root.
- C. application.properties or application.yml, usually located in the classpath root.
- D. env.properties or env.yml, usually located in the classpath root.
Correct answer: C
Explanation
The correct answer is C, as Spring Boot specifically looks for application.properties or application.yml files in the classpath for configuration settings. Options A, B, and D are incorrect because while they mention valid filenames, they do not represent the standard naming convention that Spring Boot prioritizes for loading properties.