![JAR search and dependency download from the Maven repository](/logo.png)
examples.Examples Maven / Gradle / Ivy
package examples;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.configuration.ConfigurationService;
import io.vertx.ext.configuration.ConfigurationServiceOptions;
import io.vertx.ext.configuration.ConfigurationStoreOptions;
/**
* @author Clement Escoffier
*/
public class Examples {
public void example1(Vertx vertx) {
ConfigurationStoreOptions store = new ConfigurationStoreOptions()
.setType("spring-config-server")
.setConfig(new JsonObject().put("url", "http://localhost:8888/foo/development"));
ConfigurationService svc = ConfigurationService.create(vertx,
new ConfigurationServiceOptions().addStore(store));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy