PropertyUtils: 工具类使用了 commons-beanutils-1.8.2.jar 工具包进行获取数据源中数据
public class PlaceholderUtils {
/** PLACEHOLDER_PATTERN */
public static final Pattern PLACEHOLDER_PATTERN = Pattern.compile("\\$\\{(.*?)\\}");
/**
* 替换string中占位符
*
* @param model 具有占位符的字符串,可以是json格式
* @param data 数据源
* @return the string
* @throws InvocationTargetException invocation target exception
* @throws IllegalAccessException illegal access exception
* @throws NoSuchMethodException no such method exception
* @since 1.4.0
*/
public static String process(String model, String data) throws InvocationTargetException,