perf: 版本升级提示

This commit is contained in:
fit2cloud-chenyw 2023-11-01 14:37:14 +08:00
parent 86adee8e23
commit 5d455e1859

View File

@ -1,11 +1,14 @@
package io.dataease.utils;
import org.springframework.core.env.Environment;
public class VersionUtil {
private static final String randomId = IDUtils.randomID(16);
public static String getRandomVersion() {
return randomId;
Environment environment = CommonBeanFactory.getBean(Environment.class);
assert environment != null;
return environment.getProperty("dataease.version", "2.0.0");
}
}