Broadcom-VMware
2V0-72.22 · Question #6
Which statement is true about the @PropertySource annotation? (Choose the best answer.)
The correct answer is D. Used to add a set of name/value pairs to the Spring Environment from an external source. https://docs.spring.io/spring-framework/reference/core/beans/environment.html#beans-using-
Application Deployment and Management
Question
Which statement is true about the @PropertySource annotation? (Choose the best answer.)
Options
- AUsed to designate the location of the application.properties file in a Spring Boot application.
- BUsed to easily look up and return a single property value from some external property file.
- CUsed to designate the file directory of the application.properties file in a Spring Boot
- DUsed to add a set of name/value pairs to the Spring Environment from an external source.
How the community answered
(55 responses)- A4% (2)
- B9% (5)
- C13% (7)
- D75% (41)
Explanation
https://docs.spring.io/spring-framework/reference/core/beans/environment.html#beans-using-
Topics
#@PropertySource#Spring configuration#external properties#Spring Environment
Community Discussion
No community discussion yet for this question.