StringUtils.substring(String.valueOf(maxSequence), 0, -3) 如上,关键就是那个-3,表示倒数第三位。 转载于:https://www.cnblogs.com/wzhanke/p/4624867.html