Class ApplicationPropertiesConfig
java.lang.Object
net.optionfactory.spring.context.propertysources.ApplicationPropertiesConfig
Read application properties from the following locations:
project.propertiesfrom classpath, where properties filtered by maven should be placed;${project.name}.propertiesfrom classpath, containing unfiltered properties;git.propertiesfrom classpath, containing git information generated by pl.project13.maven:git-commit-id-plugin;~/.${project.name}.properties, for local development environment overrides (use this feature responsibly);/opt/${project.name}/conf/project.properties, for testing/production environment overrides, such as jdbc properties.
@Value("${...}"))
replacement using the above properties sources.
Import this configuration class in every Spring context that requires such
application properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.support.PropertySourcesPlaceholderConfigurer
-
Constructor Details
-
ApplicationPropertiesConfig
public ApplicationPropertiesConfig()
-
-
Method Details
-
propertySourcesPlaceholderConfigurer
@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer()
-