各地配置外置

This commit is contained in:
wangliwen 2022-06-22 19:33:20 +08:00
parent 2d18cbbf9a
commit de75da4b68
9 changed files with 22 additions and 13 deletions

View File

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

View File

@ -0,0 +1,7 @@
tsingtao-xha.cloudhls=http://10.10.30.9:8001/hx-weatherwarning/camera/getCameraLiveStreamByCode?cameraCode=%s&protocol=hls
tsingtao-xha.localhls=http://10.134.135.9:8001/hx-weatherwarning/camera/getCameraLiveStreamByCode?cameraCode=%s&protocol=hls
tsingtao-xha.cloudcam=http://10.10.30.9:8001/hx-weather-warning/camera/getCameraListByName?name=%s&pageNo=%d&pageSize=%d
tsingtao-xha.localcam=http://10.134.135.9:8001/hx-weather-warning/camera/getCameraListByName?name=%s&pageNo=%d&pageSize=%d
tsingtao-xha.resourcecount=http://10.16.3.224:30090/api/share-portal/platform/catalogue/query?catalogueId=&departmentId=&serviceName=&type=&orderField=requestNum&orderType=desc&pageNum=1&pageSize=10&serviceType=data&rq=1655106309671.43
tsingtao-xha.resourceapplyinfo=http://10.134.135.24:30058/shareportal/platform/index/abilityMarket/count
tsingtao-xha.sjzy=http://10.16.3.224:30090/api/share-portal/platform/catalogue/query?catalogueId=&departmentId=&serviceName=%s&type=&orderField=%s&orderType=%s&pageNum=%s&pageSize=%s&serviceType=data&rq=1655106309671.43

View File

View File

@ -304,7 +304,8 @@
<!-- 排除生产环境配置 -->
<exclude>application-prod.yml</exclude>
<!-- 排除flyway管理的sql -->
<!-- <exclude>db/*.sql</exclude>-->
<exclude>db/*.sql</exclude>
<exclude>domain/**</exclude>
</excludes>
</resource>
<resource>

View File

@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
*/
@Data
@Component
@PropertySource("classpath:/domain/baotou.properties")
@PropertySource("file:config/domain/baotou.properties")
@ConfigurationProperties(prefix = "baotou")
public class BaoTouProperties {
private String hlsurl;

View File

@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
*/
@Data
@Component
@PropertySource("classpath:/domain/tsingtao.properties")
@PropertySource("file:config/domain/tsingtao.properties")
@ConfigurationProperties(prefix = "tsingtao")
public class TsingtaoProperties {

View File

@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
*/
@Data
@Component
@PropertySource("classpath:/domain/tsingtao-xha.properties")
@PropertySource("file:config/domain/tsingtao-xha.properties")
@ConfigurationProperties(prefix = "tsingtao-xha")
public class Tsingtao_xhaProperties {
private String cloudhls;

View File

@ -415,15 +415,14 @@ public class ResourceController {
}
*/
@GetMapping("getHls")
@ApiOperation("获取hls地址")
@GetMapping("/hls/getHls")
public Result<String> getHls(String key) {
Optional<AbstractVideoPreviewService> factory = VideoPreviewFactory.build();
if (factory.isPresent()) {
String hls = factory.get().getHls(key);
return new Result<String>().ok(hls);
}
return null;
return new Result<String>().ok(null);
}

View File

@ -51,6 +51,7 @@
<include>*.properties</include>
<include>*.json</include>
<include>db/*.sql</include>
<include>domain/**</include>
</includes>
<excludes>
<exclude>application-prod.yml</exclude>