- 27 Jan, 2022 1 commit
-
-
TikiWong authored
-
- 26 Dec, 2021 1 commit
-
-
Zheng Jie authored
命名重复会打印如下日志,不介意的可以不修改: s.d.s.w.s.ApiListingReferenceScanner: Generating unique operation named
-
- 24 Dec, 2021 2 commits
-
-
Zheng Jie authored
-
-
- 23 Dec, 2021 1 commit
-
-
Dawei-Simayi authored
-
- 15 Dec, 2021 1 commit
-
-
Zheng Jie authored
-
- 11 Dec, 2021 1 commit
-
-
Zheng Jie authored
-
- 10 Dec, 2021 1 commit
-
-
Zheng Jie authored
-
- 04 Dec, 2021 2 commits
-
-
Zheng Jie authored
-
Night_mare authored
* Update LogServiceImpl.java 断言不适合用于参数验证,因为断言可以在JVM中的运行时被禁用,这意味着错误的操作设置将完全消除预期的检查。此外,失败的断言会抛出断言错误,而不是抛出某种类型的异常。抛出错误完全超出了正常程序中预期的捕获/抛出行为的正常范围。使用 if 代替 断言, 并抛出 IllegalArgumentException 更可控 * 代码完善 使用size()测试空性是可行的,但使用isEmpty()可以使代码更可读,性能也更高。任何isEmpty()方法实现的时间复杂度都应该是O(1),而size()的一些实现可以是O(n)。 * Update RedisConfig.java 1. 注释写的是 默认两小时, 但是代码写的是 6 小时, 所以应指定哪一个 ? 2. 当没有出现碰撞时, 固定的 3个 kv 对, size 达到 3 个, 如果方法参数不为空, 则会触发 HashMap 扩容, 影响性能 3 + params.length > (2^2 * 0.75 = 3) 2. 仍然引用的是 apache 的方法, 为了去除歧义, 应使用全类名指定 如果方法返回值包含 null, 则加上 @Nullable 注解, 代码更易读 * 添加 Nullable 注解所需导入的包 * 删除不用的包 改用 org.apache.commons.lang3.StringUtils 全类名调用 isBlank() 方法后, 原 import me.zhengjie.utils.StringUtils; 可以删除 * 调用replaceAll() 方法修改为调用 replace() 方法 传给 replaceAll 的参数不是正则表达式, replaceAll 和 replace 效果是一样的, 且 replaceAll 由于会调用 ava.util.regex.Pattern.compile()方法, 导致性能消耗更大
-
- 27 Nov, 2021 1 commit
-
-
Zheng Jie authored
-
- 23 Nov, 2021 2 commits
- 22 Nov, 2021 1 commit
-
-
Zheng Jie authored
-
- 16 Nov, 2021 2 commits
-
-
-
18331247943 authored
资源泄漏
-
- 01 Sep, 2021 1 commit
-
-
Emil-Zhang authored
-
- 05 Aug, 2021 2 commits
-
-
Zheng Jie authored
-
Zheng Jie authored
close https://github.com/elunez/eladmin/issues/667
-
- 19 Jul, 2021 3 commits
- 11 Jun, 2021 2 commits
- 07 Jun, 2021 4 commits
-
-
Zheng Jie authored
close https://github.com/elunez/eladmin/issues/612
-
Zheng Jie authored
close https://github.com/elunez/eladmin/issues/620
-
Zheng Jie authored
close https://github.com/elunez/eladmin/issues/642
-
Zheng Jie authored
close https://github.com/elunez/eladmin/issues/643
-
- 08 May, 2021 1 commit
-
-
Zheng Jie authored
-
- 27 Apr, 2021 2 commits
- 25 Apr, 2021 1 commit
-
-
Tsln authored
-
- 20 Mar, 2021 2 commits
-
-
-
Zheng Jie authored
-
- 14 Mar, 2021 1 commit
-
-
ice_cola authored
fix:A custom permission role does not refresh the DataScope cache after adding subdepartments to a department (#608)
-
- 05 Mar, 2021 3 commits
- 04 Mar, 2021 1 commit
-
-
Tsln authored
(cherry picked from commit cdbc3a8faaf5958489758608329aa70095b37bb3)
-
- 03 Mar, 2021 1 commit
-
-
Zheng Jie authored
close https://github.com/elunez/eladmin/issues/585
-