kdjj2006
|
e0af08ebdd
|
优化部分badsmell:包括空指针风险以及多次使用变量的提取 (#772)
* 获取验证码逻辑,无需加锁,不涉及线程安全问题,提高效率
* 自定义生成策略时,Map容量设置不准确,会导致无必要的扩容
* 优化badsmell:包括空指针以及多次使用变量的提取
* 修改优化部分badsmeall
|
2022-10-24 18:00:30 +08:00 |
Zheng Jie
|
164ce50bb0
|
update
|
2022-08-30 11:59:24 +08:00 |
Zheng Jie
|
1c141bfc5d
|
Merge branch 'master' of github.com:elunez/eladmin
|
2022-08-11 09:43:17 +08:00 |
yujr1990
|
62fab6e76e
|
修改登录日志判断方式
@0001
@修改登录日志判断方式
Co-authored-by: yujr <yujr@asiainfo.com>
|
2022-08-10 11:12:55 +08:00 |
Zheng Jie
|
5cfa96e127
|
update domain
|
2022-08-02 13:48:48 +08:00 |
kdjj2006
|
62cb72eab9
|
修改HashMap初始化容量,减少不必要的扩容,提高性能 (#760)
* 获取验证码逻辑,无需加锁,不涉及线程安全问题,提高效率
* 自定义生成策略时,Map容量设置不准确,会导致无必要的扩容
|
2022-07-25 15:41:38 +08:00 |
kdjj2006
|
40177c6c8d
|
获取验证码逻辑,无需加锁,不涉及线程安全问题,提高效率 (#755)
|
2022-07-12 21:15:41 +08:00 |
Zheng Jie
|
255a3254ce
|
[代码完善](master): 代码优化
close https://github.com/elunez/eladmin/issues/752
|
2022-07-04 11:44:54 +08:00 |
xiaoyong
|
64a3ff7b26
|
Issues635 (#751)
* issues/635
* issues/635
Co-authored-by: asdc <asdc>
|
2022-07-03 22:25:49 +08:00 |
Zheng Jie
|
20f2c6362e
|
[代码完善](master): 代码优化
|
2022-06-14 16:32:03 +08:00 |
朱金耀
|
7cef6f8bf2
|
!30 解决生成前段代码字典数据重复bug
* 解决生产前段代码字典数据重复bug:但一个页面中多个项目管理同一个字典时,数据重复
|
2022-06-14 07:24:56 +00:00 |
Zheng Jie
|
b7b721b13b
|
[代码完善](master): 代码优化
|
2022-06-12 15:55:15 +08:00 |
Zheng Jie
|
2dc528a103
|
[Bug修复](master): 修复定时任务管理存在SQL注入漏洞问题
由于定时任务未对Bean进行过滤,导致攻击者可以从SpringContextHolder获得控制jdbcTemplate类,并使用getDeclaredMethod调用jdbcTemplate的queryForMap函数,从而执行任意sql命令。
修复后定时任务的 Bean 需要使用 @Service 注解定义。
|
2022-06-10 19:56:28 +08:00 |
Zheng Jie
|
22c3864dee
|
[新增功能](luoqiz-master): 记录登录日志
|
2022-06-07 18:21:52 +08:00 |
Zheng Jie
|
5959c3fc62
|
[新增功能](luoqiz-master): Merge branch 'master' of https://github.com/luoqiz/eladmin
升级spring boot版本到2.6.4、升级部分依赖包版本
https://github.com/elunez/eladmin/pull/735
|
2022-05-31 18:29:17 +08:00 |
Aborn Jiang
|
68608b28e3
|
Column use `` for reserved key (#743)
* fix weird prefixes keys when use RedisUtils.scan
* Column use `` for reserved key
ref: https://stackoverflow.com/questions/2224503/how-to-map-an-entity-field-whose-name-is-a-reserved-word-in-jpa
|
2022-05-31 17:57:37 +08:00 |
Zheng Jie
|
d4ae410929
|
update
|
2022-05-26 16:53:28 +08:00 |
Zheng Jie
|
10a1641298
|
update
|
2022-05-26 16:23:30 +08:00 |
Zheng Jie
|
78b7d21ddc
|
[新增功能](master): 用户登录缓存改为存储到 Redis
|
2022-05-26 15:39:59 +08:00 |
Zheng Jie
|
0e7c4fcbff
|
修复个人中心用户日志查询问题
|
2022-05-26 13:43:54 +08:00 |
Zheng Jie
|
d78e1decb3
|
新增 AuthorityDto 类,避免 GrantedAuthority 序列化报错问题
|
2022-05-24 16:34:47 +08:00 |
Zheng Jie
|
9015cae9db
|
fastjson 升级到 1.2.83 后需要指定序列化白名单
|
2022-05-24 11:06:26 +08:00 |
Zheng Jie
|
3ed5383695
|
fastjson 版本升级到 1.2.83
|
2022-05-24 10:09:28 +08:00 |
Aborn Jiang
|
f9ed3a8976
|
fix weird prefixes keys when use RedisUtils.scan (#737)
|
2022-05-20 17:10:14 +08:00 |
Zheng Jie
|
e37d485b4b
|
update
|
2022-05-20 13:26:42 +08:00 |
Zheng Jie
|
f78adec4ec
|
update
|
2022-04-12 10:15:18 +08:00 |
Zheng Jie
|
acd8d8628c
|
体验地址更换
|
2022-03-22 13:24:31 +08:00 |
Zheng Jie
|
76ac60e994
|
文件超出规定大小提示优化
|
2022-03-18 14:33:19 +08:00 |
Zheng Jie
|
7e85fb2e25
|
文件超出规定大小提示优化
|
2022-03-18 14:10:12 +08:00 |
luoqiangzheng@hz-cpp.com
|
837f23080b
|
升级依赖包
|
2022-03-14 15:05:25 +08:00 |
Zheng Jie
|
b9aca9366d
|
启动时可选记录pid
|
2022-03-07 14:12:58 +08:00 |
YJRY
|
e06ec08400
|
[代码优化]枚举值调整为统一大写;枚举的find方法优化 (#730)
Co-authored-by: xuqi <xuqi@zed.com>
|
2022-03-04 09:52:37 +08:00 |
Zheng Jie
|
0705b123be
|
Merge branch 'master' of https://github.com/Tiki-77/eladmin
|
2022-02-28 09:43:13 +08:00 |
dependabot[bot]
|
0f3569de87
|
Bump xercesImpl from 2.12.0 to 2.12.2 (#723)
Bumps xercesImpl from 2.12.0 to 2.12.2.
---
updated-dependencies:
- dependency-name: xerces:xercesImpl
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
2022-02-10 09:39:52 +08:00 |
TikiWong
|
c9614bd77c
|
笔误
|
2022-01-27 14:29:59 +08:00 |
TikiWong
|
6941b984be
|
[代码优化] 添加支持配置的可回收用户缓存
|
2022-01-27 14:18:41 +08:00 |
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 |