Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2015 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/500b4f2ea9c19a071c82 to your computer and use it in GitHub Desktop.
Save anonymous/500b4f2ea9c19a071c82 to your computer and use it in GitHub Desktop.
@PropertySource("/application.properties")
public class Application {
@Inject @Property(name = "application.name")
private String name;
@Inject @Property(name = "application.version", source = "/version.properties")
private Version version;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment