Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira
Last active December 20, 2020 16:55
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 eliasnogueira/06ee620aa55853fd7db87009361156e8 to your computer and use it in GitHub Desktop.
Save eliasnogueira/06ee620aa55853fd7db87009361156e8 to your computer and use it in GitHub Desktop.
Model object to read properties file using Owner
import org.aeonbits.owner.Config;
@Config.Sources({"classpath:general.properties"})
public interface GeneralConfig extends Config {
String target();
@Config.Key("url.base")
String url();
int timeout();
Boolean headless();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment