Zheng Jie
c75b52e15b
代码优化,修改Controller中方法,避免名称重复
...
命名重复会打印如下日志,不介意的可以不修改:
s.d.s.w.s.ApiListingReferenceScanner: Generating unique operation named
2021-12-26 16:42:56 +08:00
Zheng Jie
db1a20a83c
定时任务优化,默认不打印SQL日志
2021-12-24 21:01:49 +08:00
Zheng Jie
ed73ee6cc8
更新 logback 版本 https://logback.qos.ch/news.html
2021-12-24 10:28:46 +08:00
Dawei-Simayi
70a3d7550b
HashMap的容量一定是2的整数幂 ( #711 )
2021-12-23 15:55:40 +08:00
Zheng Jie
7c29283377
更新 log4j 版本到 2.16.0
2021-12-15 17:22:17 +08:00
Zheng Jie
46610ffd56
更新 log4j 版本,堵上惊天漏洞
2021-12-11 22:39:52 +08:00
Zheng Jie
0ebbd66acb
代码优化
2021-12-10 16:18:42 +08:00
Zheng Jie
d9d50d3594
代码优化
2021-12-04 14:43:52 +08:00
Night_mare
e6077c6613
[代码优化] assert 断言可能的问题, 以及 argList 调用方法优化, RedisConfig 的注释与代码不一致问题 ( #705 )
...
* 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()方法, 导致性能消耗更大
2021-12-04 14:34:40 +08:00
Zheng Jie
8cb9b1dda9
update
2021-11-27 10:23:00 +08:00
Zheng Jie
b267258776
代码优化
2021-11-23 15:49:05 +08:00
dante
931ecb3ba7
Fix cache by future ( #652 )
...
* 利用future回调避免并发调用时有多个线程同时去数据库查询,导致消耗额外资源。经过测试在8个线程并发查询时性能提升
* 修复缓存测试时懒加载报错问题
* 调整格式
2021-11-23 15:33:59 +08:00
Zheng Jie
7b91c4405c
使用 mica-ip2region 解析IP地址信息
2021-11-22 10:40:18 +08:00
Zheng Jie
08f6c58211
close https://github.com/elunez/eladmin/issues/692
2021-11-16 21:15:52 +08:00
18331247943
7167f29276
Update StringUtils.java ( #696 )
...
资源泄漏
2021-11-16 12:19:44 +08:00
Emil-Zhang
38262e06b2
修复手动清除子任务id后导致运行定时任务报错 ( #671 )
2021-09-01 16:31:31 +08:00
Zheng Jie
fc43600b0e
[Bug修复](master): update
2021-08-05 17:09:36 +08:00
Zheng Jie
3a10c11662
[Bug修复](master):代码生成页面分页功能BUG
...
close https://github.com/elunez/eladmin/issues/667
2021-08-05 17:08:04 +08:00
yuyu1025
6c75df558e
Update MenuServiceImpl.java ( #656 )
...
防止isQuery为空时自动拆箱出现NullPointerException
2021-07-19 14:21:07 +08:00
yuchumian
12a7e033f2
Update GenUtil.java ( #654 )
...
修改移除表前缀后变量名大写
2021-07-19 14:20:27 +08:00
Elune
3637ae0240
!24 修复yml配置ddl-auto配置不生效
...
Merge pull request !24 from 李恒/master
2021-07-19 06:15:58 +00:00
李恒
aadeb2504d
!1 修复Jpa ddl-auto配置不生效bug
...
Merge pull request !1 from 李恒/N/A
2021-06-12 00:54:39 +08:00
李恒
7ec5b8791b
修复Jpa ddl-auto配置不生效bug
2021-06-12 00:53:26 +08:00
Zheng Jie
48dff86111
[Bug修复](master): update DictServiceImpl.java
...
close https://github.com/elunez/eladmin/issues/612
2021-06-07 15:41:21 +08:00
Zheng Jie
4b845b748f
[Bug修复](master): update ExecutionJob.java
...
close https://github.com/elunez/eladmin/issues/620
2021-06-07 15:10:09 +08:00
Zheng Jie
10dcf6e11b
[Bug修复](master): 头像上传验证图片格式,限制图片大小
...
close https://github.com/elunez/eladmin/issues/642
2021-06-07 15:05:54 +08:00
Zheng Jie
923142bbb2
[Bug修复](master): 修复部门递归问题
...
close https://github.com/elunez/eladmin/issues/643
2021-06-07 14:47:33 +08:00
Zheng Jie
34b91ea7fd
[代码优化](v2.6):update BaseDTO.java
2021-05-08 16:38:44 +08:00
Tsln
f207d003c2
bugfix: #627 ( #634 )
...
Emmm...解密是没有长度限制的
2021-04-27 14:29:33 +08:00
Tsln
19214fd592
更新 JNA 版本,适配 Apple M1 芯片 ( #631 )
2021-04-27 14:29:13 +08:00
Tsln
3072c9633a
update: 更换 UserAgent 识别库 ( #630 )
2021-04-25 11:50:49 +08:00
Zheng Jie
e0ea026d43
Merge branch 'master' of https://github.com/elunez/eladmin
2021-03-20 14:21:20 +08:00
Zheng Jie
e1c434b854
[代码优化](v2.6):@Query 加入 NOT_IN 查询
2021-03-20 14:17:50 +08:00
ice_cola
3b802fd770
fix:A custom permission role does not refresh the DataScope cache after adding subdepartments to a department ( #608 )
2021-03-14 12:46:37 +08:00
Zheng Jie
8c6571f1c8
[代码优化](v2.6):update
2021-03-05 11:58:16 +08:00
Zheng Jie
4e58afd567
Merge branch 'master' of https://github.com/elunez/eladmin
2021-03-05 11:29:44 +08:00
Zheng Jie
cd85594e48
[代码优化](v2.6):代码优化
2021-03-05 11:26:08 +08:00
Tsln
a49bd6d127
修复算术类型验证码在 Java 15+ 的兼容问题 ( #607 )
...
(cherry picked from commit cdbc3a8faaf5958489758608329aa70095b37bb3)
2021-03-04 21:53:37 +08:00
Zheng Jie
01d1aa9721
[代码优化](v2.6):加入第三方系统获取Token的方式
...
close https://github.com/elunez/eladmin/issues/585
2021-03-03 17:40:22 +08:00
Zheng Jie
3f129e8e85
[代码优化](v2.6):update README.md
2021-03-03 17:03:08 +08:00
Zheng Jie
88dc69fdfe
[代码优化](v2.6):update logback.xml
2021-03-02 21:42:16 +08:00
Zheng Jie
d8a458cafa
[代码优化](v2.6):update UserController
2021-03-02 21:39:40 +08:00
Tsln
162cff269b
增强 RSAUtils 以解决 RSA 加密/解密长度限制 ( #604 )
2021-03-02 19:04:02 +08:00
shane
a0b6e85ee5
[代码优化]BaseEntity里updatedBy改为updateBy ( #603 )
...
与其他字段时态一致
2021-03-02 19:03:20 +08:00
Zheng Jie
a1e8005499
[代码优化](v2.6):update swagger
2021-03-01 19:35:10 +08:00
lWoHvYe
8bb800c68e
Spring Boot版本升级2.2.10,解决in 查询传null时报错。调整Swagger中token设置方式 ( #595 )
...
* Spring Boot版本调整为2.2.10。在此前的版本,若in 查询传入null,会报错。相关sql 为in ()。在2.2版本修复了此问题,相关sql改为 in (null)。鉴于此,建议进行升级。
* Spring Boot依赖升级后,Sort的设置方式调整。由 new Sort()改为 Sort.by()
* 调整接口文档Swagger中,token的设置方式,由每个接口单独设置,改为设置统一的token,日常测试更加方便
2021-03-01 19:07:56 +08:00
杨洋
7b0caae907
错别字更正 ( #590 )
2021-03-01 19:04:47 +08:00
zhengjie
0dfdcf11e8
[代码优化](v2.6):修复邮件发送失败的问题
2021-02-08 20:57:44 +08:00
zhengjie
c968eb36ef
[代码优化](v2.6):修正配置文件[login-code: height]拼写错误
2021-02-03 09:47:02 +08:00
zhengjie
e4e318aa4e
[代码优化](v2.6):druid 配置优化
2021-02-01 20:51:16 +08:00