|
@@ -22,6 +22,8 @@ public class FusionApplication implements CommandLineRunner {
|
|
|
private String uploadType;
|
|
|
@Value("${upload.query-path}")
|
|
|
private String queryPath;
|
|
|
+ @Value("${spring.profiles.active}")
|
|
|
+ private String environment;
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(FusionApplication.class, args);
|
|
|
}
|
|
@@ -30,6 +32,7 @@ public class FusionApplication implements CommandLineRunner {
|
|
|
public void run(String... args) throws Exception {
|
|
|
CacheUtil.uploadType = uploadType;
|
|
|
CacheUtil.queryPath = queryPath;
|
|
|
+ CacheUtil.environment = environment;
|
|
|
|
|
|
}
|
|
|
}
|