Search in sources :

Example 1 with OssProperties

use of com.ruoyi.common.oss.properties.OssProperties in project RuoYi-Cloud-Plus by JavaLionLi.

the class OssFactory method refresh.

private static void refresh(String configKey) {
    Object json = RedisUtils.getCacheObject(OssConstant.SYS_OSS_KEY + configKey);
    OssProperties properties = JsonUtils.parseObject(json.toString(), OssProperties.class);
    if (properties == null) {
        throw new OssException("系统异常, '" + configKey + "'配置信息不存在!");
    }
    CLIENT_CACHE.put(configKey, new OssClient(configKey, properties));
}
Also used : OssClient(com.ruoyi.common.oss.core.OssClient) OssProperties(com.ruoyi.common.oss.properties.OssProperties) OssException(com.ruoyi.common.oss.exception.OssException)

Aggregations

OssClient (com.ruoyi.common.oss.core.OssClient)1 OssException (com.ruoyi.common.oss.exception.OssException)1 OssProperties (com.ruoyi.common.oss.properties.OssProperties)1