shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
}