各地配置外置
This commit is contained in:
parent
2d18cbbf9a
commit
de75da4b68
|
@ -0,0 +1 @@
|
||||||
|
baotou.hlsurl=http://10.110.205.1:18088/server/device/hisdeviceapplylist/url/%s
|
|
@ -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
|
|
@ -304,7 +304,8 @@
|
||||||
<!-- 排除生产环境配置 -->
|
<!-- 排除生产环境配置 -->
|
||||||
<exclude>application-prod.yml</exclude>
|
<exclude>application-prod.yml</exclude>
|
||||||
<!-- 排除flyway管理的sql -->
|
<!-- 排除flyway管理的sql -->
|
||||||
<!-- <exclude>db/*.sql</exclude>-->
|
<exclude>db/*.sql</exclude>
|
||||||
|
<exclude>domain/**</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</resource>
|
</resource>
|
||||||
<resource>
|
<resource>
|
||||||
|
|
|
@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Component
|
@Component
|
||||||
@PropertySource("classpath:/domain/baotou.properties")
|
@PropertySource("file:config/domain/baotou.properties")
|
||||||
@ConfigurationProperties(prefix = "baotou")
|
@ConfigurationProperties(prefix = "baotou")
|
||||||
public class BaoTouProperties {
|
public class BaoTouProperties {
|
||||||
private String hlsurl;
|
private String hlsurl;
|
||||||
|
|
|
@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Component
|
@Component
|
||||||
@PropertySource("classpath:/domain/tsingtao.properties")
|
@PropertySource("file:config/domain/tsingtao.properties")
|
||||||
@ConfigurationProperties(prefix = "tsingtao")
|
@ConfigurationProperties(prefix = "tsingtao")
|
||||||
public class TsingtaoProperties {
|
public class TsingtaoProperties {
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Component
|
@Component
|
||||||
@PropertySource("classpath:/domain/tsingtao-xha.properties")
|
@PropertySource("file:config/domain/tsingtao-xha.properties")
|
||||||
@ConfigurationProperties(prefix = "tsingtao-xha")
|
@ConfigurationProperties(prefix = "tsingtao-xha")
|
||||||
public class Tsingtao_xhaProperties {
|
public class Tsingtao_xhaProperties {
|
||||||
private String cloudhls;
|
private String cloudhls;
|
||||||
|
|
|
@ -415,15 +415,14 @@ public class ResourceController {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@GetMapping("getHls")
|
@GetMapping("/hls/getHls")
|
||||||
@ApiOperation("获取hls地址")
|
|
||||||
public Result<String> getHls(String key) {
|
public Result<String> getHls(String key) {
|
||||||
Optional<AbstractVideoPreviewService> factory = VideoPreviewFactory.build();
|
Optional<AbstractVideoPreviewService> factory = VideoPreviewFactory.build();
|
||||||
if (factory.isPresent()) {
|
if (factory.isPresent()) {
|
||||||
String hls = factory.get().getHls(key);
|
String hls = factory.get().getHls(key);
|
||||||
return new Result<String>().ok(hls);
|
return new Result<String>().ok(hls);
|
||||||
}
|
}
|
||||||
return null;
|
return new Result<String>().ok(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
<include>*.properties</include>
|
<include>*.properties</include>
|
||||||
<include>*.json</include>
|
<include>*.json</include>
|
||||||
<include>db/*.sql</include>
|
<include>db/*.sql</include>
|
||||||
|
<include>domain/**</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>application-prod.yml</exclude>
|
<exclude>application-prod.yml</exclude>
|
||||||
|
|
Loading…
Reference in New Issue