Lotuseed集成
2017-07-26 本文已影响3人
简爱WindMan
官方文档:
在线参数封装,便于统一管理
public class OnLineParams {
private static final String xxxUrl = "https://item.jd.com/1635351001.html";
private static OnLineParams instance = null;
private OnLineParams() {
}
public static OnLineParams getInstance() {
synchronized (OnLineParams.class) {
if (instance == null) {
instance = new OnLineParams();
}
}
return instance;
}
public String getWebShopUrl() {
return Lotuseed.getConfigParams("webUrlSh", xxxUrl);
}
}
# Tip:
**在线参数有缓存,缓存时间在一个小时以上。**