package com.iplatform.core.config;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
/**
|
* 支持集群配置。
|
* @date 2023-09-29
|
*/
|
@ConfigurationProperties(prefix = "iplatform.lb")
|
public class LoadBalanceProperties {
|
|
/**
|
* 每个主机节点唯一数字编号,从1开始
|
* @return
|
*/
|
public String getServerId() {
|
return serverId;
|
}
|
|
public void setServerId(String serverId) {
|
this.serverId = serverId;
|
}
|
|
private String serverId;
|
}
|