StringUtils.left()

StringUtils.left()或者
StringUtils.leftPad()代替
str.substring()

用法:
org.apache.commons.lang3.StringUtils.left(e.getMessage(),400)
posted @ 2023-03-27 17:00  初仰  阅读(28)  评论(0编辑  收藏  举报