公共配置
# 数据库操连接超时时间,默认10秒
platform.ep.form.db.check.connection-timeout=10
platform.ep.form.db.check.connection-timeout-1=
import cn.hutool.core.util.BooleanUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
@Component
public class PubEnvUtil {
@Resource
private Environment env;
private static PubEnvUtil pubEnvUtil;
@PostConstruct
public void init() {
pubEnvUtil = this;
}
public static