use of org.apache.servicecomb.localregistry.RegistryBean.Instances in project java-chassis by ServiceComb.
the class RegistryBeansConfiguration method demoLocalRegistryServerBean.
@Bean
public RegistryBean demoLocalRegistryServerBean() {
List<String> endpoints = new ArrayList<>();
endpoints.add("rest://localhost:8080");
List<Instance> instances = new ArrayList<>();
instances.add(new Instance().setEndpoints(endpoints));
return new RegistryBean().setServiceName("demo-local-registry-server-bean").setId("002").setVersion("0.0.3").setAppId("demo-local-registry").addSchemaId("ServerEndpoint").addSchemaId("CodeFirstEndpoint").setInstances(new Instances().setInstances(instances));
}
Aggregations