Annotation Interface ApplicationProperties


@Target(TYPE) @Retention(RUNTIME) @PropertySource(value="classpath:project.properties",encoding="UTF-8") @PropertySource(value="classpath:${project.name}.properties",encoding="UTF-8") @PropertySource(value="classpath:git.properties",encoding="UTF-8",ignoreResourceNotFound=true) @PropertySource(value="file:${user.home}/.${project.name}.properties",encoding="UTF-8",ignoreResourceNotFound=true) @PropertySource(value="file:/opt/${project.name}/conf/project.properties",encoding="UTF-8",ignoreResourceNotFound=true) @Documented public @interface ApplicationProperties
Read application properties from the following locations:
  1. project.properties from classpath, where properties filtered by maven should be placed;
  2. ${project.name}.properties from classpath, containing unfiltered properties;
  3. git.properties from classpath, containing git information generated by pl.project13.maven:git-commit-id-plugin;
  4. ~/.${project.name}.properties, for local development environment overrides (use this feature responsibly);
  5. /opt/${project.name}/conf/project.properties, for testing/production environment overrides, such as jdbc properties.