Compare commits

...

5 Commits

Author SHA1 Message Date
wangliwen 42690164fb ... 2022-06-21 10:08:01 +08:00
wangliwen b4af15eab1 现有区域配置文件 加入 2022-06-21 10:05:18 +08:00
wangliwen ae66fffc8d 包头配置文件引入 2022-06-21 09:57:12 +08:00
wangliwen 21603f50fa 默认部署 青岛市区 2022-06-21 09:48:36 +08:00
wangliwen ae61f7fcc5 增加地点枚举 2022-06-21 09:47:04 +08:00
8 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package io.renren.common.domain;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
* 包头区域配置项
*/
@Data
@Component
@PropertySource("classpath:/domain/baotou.properties")
@ConfigurationProperties(prefix = "baotou")
public class BaoTouProperties {
private String hlsurl;
}

View File

@ -0,0 +1,18 @@
package io.renren.common.domain;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
* 青岛市区
*/
@Data
@Component
@PropertySource("classpath:/domain/tsingtao.properties")
@ConfigurationProperties(prefix = "tsingtao")
public class TsingtaoProperties {
}

View File

@ -0,0 +1,18 @@
package io.renren.common.domain;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
* 青岛西海岸
*/
@Data
@Component
@PropertySource("classpath:/domain/tsingtao_xha.properties")
@ConfigurationProperties(prefix = "tsingtao_xha")
public class Tsingtao_xhaProperties {
}

View File

@ -1,3 +1,6 @@
project:
# 平台部署位置 0青岛市区 1青岛西海岸 2包头
place: 0
# 大数据部门相关配置 # 大数据部门相关配置
big_date: big_date:
name: 青岛市大数据发展管理局 name: 青岛市大数据发展管理局

View File

@ -0,0 +1 @@
baotou.hlsurl=http://10.110.205.1:18088/server/device/hisdeviceapplylist/url/%s

View File

@ -212,4 +212,31 @@ public interface Constant {
return value; return value;
} }
} }
/**
* 项目运行地点
*/
enum ProjectPlace {
/**
* 青岛市区
*/
TSINGTAO(0),
/**
* 青岛西海岸
*/
TSINGTAO_XHA(1),
/**
* 包头
*/
BAOTOU(2);
private int value;
ProjectPlace(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
} }