package com.iailab.module.data.video.dahua;
|
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.context.annotation.Configuration;
|
|
import javax.annotation.PostConstruct;
|
|
@Configuration
|
public class DHConfiguration {
|
|
@Value("${video.dahua.path.capturePath}")
|
public String capturePath;
|
|
@Value("${video.dahua.path.modelPath}")
|
public String modelPath;
|
|
@Value("${video.dahua.callback.url}")
|
public String url;
|
|
public static String staticCapturePath;
|
|
public static String staticModelPath;
|
|
public static String staticUrl;
|
|
@PostConstruct
|
public void initUrl() {
|
staticCapturePath = this.capturePath;
|
staticModelPath = this.modelPath;
|
staticUrl = this.url;
|
}
|
}
|