Which statement is true about the @PropertySource annotation? (Choose the best answer.)
This is true because the @PropertySource annotation provides a convenient and declarative mechanism for adding a PropertySource to Spring's Environment. A PropertySource is an abstraction for a source of name/value pairs that can be used by the Environment to resolve properties. The @PropertySource annotation can be used to load properties from an external file, such as a .properties or .yml file, and make them available to the application context.
https://docs.spring.io/spring-framework/reference/core/beans/environment.html#beans-using-propertysource
Currently there are no comments in this discussion, be the first to comment!