|
@@ -12,7 +12,7 @@ import com.thoughtworks.xstream.XStream;
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.commons.helpers.XStreamBuilder;
|
|
|
import cn.com.qmth.examcloud.commons.util.PathUtil;
|
|
|
-import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
|
|
|
+import cn.com.qmth.examcloud.web.bootstrap.PropertyHolder;
|
|
|
|
|
|
/**
|
|
|
* upyun site manager
|
|
@@ -50,9 +50,9 @@ public class UpyunSiteManager {
|
|
|
SITE_HOLDERS.put(upyunSite.getId(), upyunSite);
|
|
|
|
|
|
String upyunId = upyunSite.getUpyunId();
|
|
|
- String bucketName = PropertiesUtil.getString("$upyun.site." + upyunId + ".bucketName");
|
|
|
- String userName = PropertiesUtil.getString("$upyun.site." + upyunId + ".userName");
|
|
|
- String password = PropertiesUtil.getString("$upyun.site." + upyunId + ".password");
|
|
|
+ String bucketName = PropertyHolder.getString("$upyun.site." + upyunId + ".bucketName");
|
|
|
+ String userName = PropertyHolder.getString("$upyun.site." + upyunId + ".userName");
|
|
|
+ String password = PropertyHolder.getString("$upyun.site." + upyunId + ".password");
|
|
|
|
|
|
if (StringUtils.isBlank(bucketName)) {
|
|
|
throw new StatusException("EX-520002",
|