fix 修复 OssFactory 并发多创建实例问题

master
疯狂的狮子Li 2 years ago
parent 4e8f2b130e
commit 793737d69d

@ -39,7 +39,7 @@ public class OssFactory {
/**
*
*/
public static OssClient instance(String configKey) {
public static synchronized OssClient instance(String configKey) {
String json = CacheUtils.get(CacheNames.SYS_OSS_CONFIG, configKey);
if (json == null) {
throw new OssException("系统异常, '" + configKey + "'配置信息不存在!");

Loading…
Cancel
Save