应用示例
各类实际应用示例
林深见鹿与
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
将字符串转换为正则表达式
字符串转换为正则表达式原创 2025-05-22 18:42:42 · 214 阅读 · 0 评论 -
参数校验示例
放在类上:@ApiModel 放在参数上:@ApiModelProperty("11位号码")@NotNull ## 针对String类型@NotEmpty ## 针对List 或 Map@Pattern(regexp = "^([01])$", message = "只能为0或1")@Pattern(regexp = "^(0|1)$", message = "只能为0或1")@Pattern(regexp = "^(1|2|3)$", messag原创 2021-03-02 10:23:38 · 379 阅读 · 0 评论 -
查找项目的重复类(类名一致)
@Test public void getRepetition() throws Exception { File file = new File("E:/woMusic/project/vrbt-platform"); List<String> fileNames = new ArrayList<>(1000); DuplicateFileTest.loadFileNames(file, fileNames); System.out.print原创 2021-05-12 11:36:35 · 859 阅读 · 0 评论
分享