mirror of
https://github.com/thousmile/molly-multi-tenant.git
synced 2026-04-27 17:30:16 +00:00
校验租户ID
This commit is contained in:
@@ -7,6 +7,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
||||
class NoSpringTests {
|
||||
@@ -23,4 +24,12 @@ class NoSpringTests {
|
||||
System.out.println(FileUtil.extName("https://images.xaaef.com/base/63b7df8b9e8581f5bff107e2.jpg"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void test4() {
|
||||
boolean isMatch = Pattern.matches("\\w{4,12}$", "你好啊啊啊dwa541");
|
||||
System.out.println(isMatch);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user