Last active
December 20, 2020 16:55
-
-
Save eliasnogueira/06ee620aa55853fd7db87009361156e8 to your computer and use it in GitHub Desktop.
Model object to read properties file using Owner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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