封装替换地址的方法
注:配置文件读取方法封装详见配置文件读取
public class DNSReplacement {
public static String replacedURL(String url,String projName){
Properties propertyUtil = PropertyUtil.readProperties("config");
String domain = propertyUtil.getProperty(projName);
return domain + url;
}
}
网友评论