wuxw7
2019-03-20 e9b534cc43dd3c06af46a93fd705b57c4f3e7e37
java110-common/src/main/java/com/java110/common/util/StringUtil.java
@@ -7,6 +7,8 @@
package com.java110.common.util;
import org.springframework.util.*;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.regex.Pattern;
@@ -488,4 +490,12 @@
      }
   }
   public static String truncateMessage(String description, int length) {
      org.springframework.util.Assert.state(length > 0);
      if ((description != null) && (description.length() > length)) {
         return description.substring(0, length);
      }
      return description;
   }
}