StringUtils的实用功能
1、获取"GET /topic/1410-5813 -"中 1410-5813
import org.apache.commons.lang3.StringUtils;
String s = StringUtils.substringBetween(str, "/", " -");
String str="name/123123123 -"; String s = StringUtils.substringBetween(str, "/", " -"); System.out.println(s);
sout:123123123
坚持就是胜利