1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
    }
}