https://www.cnblogs.com/friendlysong/p/10774949.html
使用StringUtils
org.apache.commons.lang.StringUtils;// 只能判断非小数点的数字StringUtils.isNumeric(value)
自己写一个
public static Boolean isNumericString(String string){return string.matches("-?\\d+(\\.\\d+)?"); //match a number with optional '-' and decimal.}
