【视频监控,创城合并】配置文件修改
This commit is contained in:
parent
ebd57157c8
commit
d503bba7dd
|
@ -66,9 +66,9 @@ public class MonitorService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private BoothMapper boothMapper;
|
private BoothMapper boothMapper;
|
||||||
|
|
||||||
@Value("${hwx.file.work-path}")
|
@Value("${resource.path}")
|
||||||
private String fileDir;
|
private String fileDir;
|
||||||
@Value("${hwx.file.pic-host}")
|
@Value("${resource.pic-host}")
|
||||||
private String picHost;
|
private String picHost;
|
||||||
|
|
||||||
@Value("iOgQotfgfyLvhj6WgfDTpq7F")
|
@Value("iOgQotfgfyLvhj6WgfDTpq7F")
|
||||||
|
@ -88,6 +88,18 @@ public class MonitorService {
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public String init(){
|
public String init(){
|
||||||
|
|
||||||
|
try {
|
||||||
|
return monitorLogin();
|
||||||
|
}catch (Exception e){
|
||||||
|
log.warn("摄像头登录异常,跳过", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String monitorLogin(){
|
||||||
|
|
||||||
String loginUrl = monitorDomain + "/videoService/accounts/authorize";
|
String loginUrl = monitorDomain + "/videoService/accounts/authorize";
|
||||||
HashMap<String, String> loginParam = new HashMap<>();
|
HashMap<String, String> loginParam = new HashMap<>();
|
||||||
loginParam.put("userName", userName);
|
loginParam.put("userName", userName);
|
||||||
|
|
|
@ -53,6 +53,7 @@ spring:
|
||||||
#上传的静态资源配置
|
#上传的静态资源配置
|
||||||
resource:
|
resource:
|
||||||
root_url: 15.2.21.238
|
root_url: 15.2.21.238
|
||||||
|
pic-host: http://${resource.root_url}:${server.port}${server.servlet.context-path}
|
||||||
path: /home/yth/files/
|
path: /home/yth/files/
|
||||||
devModelFilePath: /home/yth/files/devModelFile
|
devModelFilePath: /home/yth/files/devModelFile
|
||||||
# 大数据部门相关配置
|
# 大数据部门相关配置
|
||||||
|
|
|
@ -37,6 +37,7 @@ spring:
|
||||||
#上传的静态资源配置
|
#上传的静态资源配置
|
||||||
resource:
|
resource:
|
||||||
root_url: 15.2.21.238
|
root_url: 15.2.21.238
|
||||||
|
pic-host: http://${resource.root_url}:${server.port}${server.servlet.context-path}
|
||||||
path: /data/services/nengli/files/
|
path: /data/services/nengli/files/
|
||||||
devModelFilePath: /data/services/nengli/files/devModelFile
|
devModelFilePath: /data/services/nengli/files/devModelFile
|
||||||
# 大数据部门相关配置
|
# 大数据部门相关配置
|
||||||
|
|
|
@ -37,6 +37,7 @@ spring:
|
||||||
#上传的静态资源配置
|
#上传的静态资源配置
|
||||||
resource:
|
resource:
|
||||||
root_url: 15.72.183.90
|
root_url: 15.72.183.90
|
||||||
|
pic-host: http://${resource.root_url}:${server.port}${server.servlet.context-path}
|
||||||
path: /data/services/nengli/files/
|
path: /data/services/nengli/files/
|
||||||
devModelFilePath: /data/services/nengli/files/devModelFile
|
devModelFilePath: /data/services/nengli/files/devModelFile
|
||||||
# 大数据部门相关配置
|
# 大数据部门相关配置
|
||||||
|
|
|
@ -26,7 +26,7 @@ server:
|
||||||
spring:
|
spring:
|
||||||
# 环境 dev|test|prod|show
|
# 环境 dev|test|prod|show
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: hwx
|
||||||
messages:
|
messages:
|
||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
basename: i18n/messages
|
basename: i18n/messages
|
||||||
|
|
Loading…
Reference in New Issue