package com.lunhan.xxx.common.config; import com.lunhan.xxx.common.util.SpringUtil; /** * 获取系统配置 读取“config.properties” */ public final class SysConfig { public static JWTConfig jwt = SpringUtil.getBean(JWTConfig.class); public static JdbcSetConfig jdbc = SpringUtil.getBean(JdbcSetConfig.class); public static FileConfig file = SpringUtil.getBean(FileConfig.class); public static String getTokenHeader() { return jwt.getTokenHeader(); //return properties.getProperty("jwt.tokenHeader", ""); } public static String getJwtHead() { return jwt.getHead(); //return properties.getProperty("jwt.tokenHead", ""); } public static String getTJwtHeader() { return jwt.getTokenHeader(); //return properties.getProperty("jwt.tokenHeader", ""); } public static boolean isSqlLog() { return "true".equalsIgnoreCase(jdbc.getSqlLog()); //return properties.getProperty("mail.sendEmail", ""); } public static String fileUploadBasic() { return file.getUploadBasicPath(); } public static String fileViewBasic() { return file.getFileBasicUrl(); } public static String fileDisturbStr() { return file.getDisturbStr(); } }