cloud.tianai.rpc.springboot.properties.RpcReqistryProperties Maven / Gradle / Ivy
package cloud.tianai.rpc.springboot.properties;
import cloud.tianai.rpc.common.URL;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Map;
@Data
@ConfigurationProperties(prefix = "tianai-rpc.registry")
public class RpcReqistryProperties {
private String name = "zookeeper";
private String address = "127.0.0.1";
private Map otterProp;
public URL getURL() {
return new URL(this.getName(), this.getAddress(), 0, this.getOtterProp());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy