智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
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 org.springblade.common.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
import java.util.List;
 
/**
 * common 公共配置路径
 * @author zhongrj
 * @since 2022-01-06
 */
@ConfigurationProperties(prefix = "common")
@Component
public class CommonConfig {
 
    /**
     * sql connect
     */
    public static int socketPort;
 
    public void setSocketPort(int socketPort) {
        CommonConfig.socketPort = socketPort;
    }
}