|
@@ -44,7 +44,7 @@ public class KwpIocApplicationTests {
|
|
|
|
|
|
@Test
|
|
|
public void testSubstring() {
|
|
|
- String str = "102:小票类型不匹配,当前小票类型为:other";
|
|
|
+ String str = "102:小票类型不匹配,当前小票类型为:other ";
|
|
|
log.info("str:{}", str);
|
|
|
log.info("str before:{}", StringUtils.substringBefore(str, ":"));
|
|
|
log.info("str after:{}", StringUtils.substringAfter(str, ":"));
|