Broadcom-VMware
2V0-72.22PSE · 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-
Core Spring
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
(27 responses)- A11% (3)
- B4% (1)
- C15% (4)
- D70% (19)
Explanation
https://docs.spring.io/spring-framework/reference/core/beans/environment.html#beans-using-
Topics
#@PropertySource#Spring Environment#external properties#configuration
Community Discussion
No community discussion yet for this question.