Tag: annotation property source


  • @PropertySource and @PropertySources Annotations In Spring Framework, the @PropertySource annotation is used to specify the source of external property files that contain key-value pairs. These properties can be injected into Spring beans using the @Value annotation or by using the Environment object. Here’s an example of how to use @PropertySource in a Spring application: Create…