对静态static变量注入值方式
@Value("${videoPath}")
private String path;
@Value("${videoPath}")
private static String path2;
private static String path3;
@Value("${videoPath}")
public void setPath3(String path3) {
IccController.path3 = path3;
}
@PostConstruct
private void init() {
path2 = path;
}
标签:path3,videoPath,String,private,static,Value,注入,变量
From: https://www.cnblogs.com/jiuyuestudy/p/17866719.html