All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.tianai.rpc.springboot.properties.RpcReqistryProperties Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
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