VMware vRealize Automation 8.x (2022) — Question 15

Which statement is true about the @PropertySource annotation? (Choose the best answer.)

Answer options

Correct answer: D

Explanation

The correct answer is D because the @PropertySource annotation is specifically designed to add external property files to the Spring Environment, allowing for the inclusion of additional configuration. Options A and C incorrectly imply that the annotation designates the location or directory of the application.properties file, while option B suggests it only retrieves single property values, which does not encompass its main purpose.