cn.wanghaomiao.seimi.utils.StrFormatUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SeimiCrawler Show documentation
Show all versions of SeimiCrawler Show documentation
一个支持分布式的可以高效开发且可以高效运行的爬虫框架。设计思想上融合了spring与scrapy的优点。
package cn.wanghaomiao.seimi.utils;
import org.apache.commons.lang3.StringUtils;
/**
* @author 汪浩淼 [email protected]
* @since 2015/7/21.
*/
public class StrFormatUtil {
public static String info(String pattern,Object... params){
for (Object p:params){
pattern = StringUtils.replaceOnce(pattern, "{}", p.toString());
}
return pattern;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy