Compare commits
5 Commits
2d41de0c66
...
42690164fb
Author | SHA1 | Date |
---|---|---|
wangliwen | 42690164fb | |
wangliwen | b4af15eab1 | |
wangliwen | ae66fffc8d | |
wangliwen | 21603f50fa | |
wangliwen | ae61f7fcc5 |
|
@ -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;
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
|
@ -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 {
|
||||
|
||||
}
|
|
@ -1,3 +1,6 @@
|
|||
project:
|
||||
# 平台部署位置 0:青岛市区 1:青岛西海岸 2:包头
|
||||
place: 0
|
||||
# 大数据部门相关配置
|
||||
big_date:
|
||||
name: 青岛市大数据发展管理局
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
baotou.hlsurl=http://10.110.205.1:18088/server/device/hisdeviceapplylist/url/%s
|
|
@ -212,4 +212,31 @@ public interface Constant {
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue