新增 spring boot kafka 整合用例

This commit is contained in:
罗祥
2019-01-04 18:00:13 +08:00
parent 8dcfd49cb9
commit df2648e3fd
11 changed files with 335 additions and 0 deletions

View File

@ -0,0 +1,7 @@
java.time.Duration类下:
private static final Pattern PATTERN =
Pattern.compile("([-+]?)P(?:([-+]?[0-9]+)D)?" +
"(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?",
Pattern.CASE_INSENSITIVE);
1s 1.5s 0s 0.001S 1h 2d