liusuyi
2024-10-10 38f29e38fcc668171dc05c53d40a36b895c86102
ruoyi-common/src/main/java/com/ruoyi/common/utils/ConfigUtils.java
@@ -18,7 +18,6 @@
    /**
     * 根据配置key获取配置value值
     *
     * @param key 配置key
     * @return configValue 配置value值
     */
    public static String getConfigValue(String key) {
@@ -30,25 +29,12 @@
    }
    /**
     * 获取所有配置信息
     *
     * @return configMap 配置信息map
     */
    public static Map<String, Object> getConfigMap() {
        Map<String, Object> configMap = SpringUtils.getBean(RedisCache.class).getMapKey(CacheConstants.SYS_CONFIG_KEY);
        if (StringUtils.isNotNull(configMap)) {
            return configMap;
        }
        return null;
    }
    /**
     * 设置cache key
     *
     * @param configKey 参数键
     * @return 缓存键key
     */
    public static String getCacheKey(String configKey) {
    private static String getCacheKey(String configKey) {
        return CacheConstants.SYS_CONFIG_KEY + configKey;
    }