Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of properties merge in the same model using Owner
import org.aeonbits.owner.Config;
@Config.LoadPolicy(Config.LoadType.MERGE)
@Config.Sources({
"classpath:general.properties",
"classpath:grid.properties"
})
public interface GeneralConfig extends Config {
String target();
@Config.Key("url.base")
String url();
int timeout();
Boolean headless();
@Config.Key("grid.url")
String gridUrl();
@Config.Key("grid.port")
String gridPort();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment