use of com.ruoyi.oss.properties.OssProperties in project RuoYi-Vue-Plus by JavaLionLi.
the class OssFactory method refresh.
private static void refresh(String type) {
Object json = RedisUtils.getCacheObject(OssConstant.SYS_OSS_KEY + type);
OssProperties properties = JsonUtils.parseObject(json.toString(), OssProperties.class);
if (properties == null) {
throw new OssException("系统异常, '" + type + "'配置信息不存在!");
}
getStrategy(type).init(properties);
}
use of com.ruoyi.oss.properties.OssProperties in project RuoYi-Flowable-Plus by KonBAI-Q.
the class OssFactory method refresh.
private static void refresh(String type) {
Object json = RedisUtils.getCacheObject(OssConstant.SYS_OSS_KEY + type);
OssProperties properties = JsonUtils.parseObject(json.toString(), OssProperties.class);
if (properties == null) {
throw new OssException("系统异常, '" + type + "'配置信息不存在!");
}
getStrategy(type).init(properties);
}
Aggregations