Config config = Config.create() .with("db.password", Config.env("DB_PASSWORD")) .with("db.username", Config.env("DB_USERNAME")); Config config = Config.create() .extend(Config.ofSystemProperties()); Config config = Config.create() .extend(Config.ofPropertiesFile("/path/to/config.properties")); Config config = Config.create() .extend(Config.ofYamlFile("/path/to/config.yaml"));


上一篇:
下一篇:
切换中文