package vc.thinker.utils; import org.slf4j.helpers.MessageFormatter; /** * @author : xieshaojun * @date : 2023/1/3 17:54 */ public class StringFormaterUtils { /** * 用{}作为占位符,格式化字符串 * * @param format * @param argArray * @return */ public static String format(String format, Object... argArray) { return MessageFormatter.arrayFormat(format, argArray).getMessage(); } }