All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.wanghaomiao.seimi.utils.StrFormatUtil Maven / Gradle / Ivy

Go to download

一个支持分布式的可以高效开发且可以高效运行的爬虫框架。设计思想上融合了spring与scrapy的优点。

There is a newer version: 2.1.4
Show newest version
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