Commit Graph

323 Commits (17820dec633243fd15550f5cd848c808164e9873)

Author SHA1 Message Date
Zheng Jie 17820dec63 代码优化 2023-07-04 16:33:52 +08:00
Zheng Jie 5b9213f25f 代码优化 2023-06-30 14:12:55 +08:00
Jover a74cf51c0a
feat: 增加分页实体 APage,使 Swagger 可显示接口的响应示例 (#800)
* feat: 增加分页实体 APage,使 Swagger 可显示接口的响应示例

1. 增加类 APage,并重构 PageUtils
2. 调整 UserController 的 `查询用户` 接口的返回值类型

* refactor: rename APage -> PageResult
2023-06-30 13:43:45 +08:00
Zheng Jie 4a6e6953df 代码结构优化 2023-06-27 10:07:44 +08:00
Zheng Jie 20f550d527 代码结构优化 2023-06-27 09:55:39 +08:00
Zheng Jie d14835a4b8 启用响应内容压缩 2023-06-13 17:34:24 +08:00
Zheng Jie 6c5e7061fe 代码优化 2023-06-11 21:27:51 +08:00
Zheng Jie a1a00154ad 代码优化 2023-06-08 16:05:51 +08:00
Zheng Jie 21b30b1bb8 代码优化,自定义线程池优化 2023-06-08 15:56:12 +08:00
bearBoy80 a330519f6a
优化tomcat配置relaxedQueryChars方式,采用TomcatConnectorCustomizer来实现 (#764)
* Create RelaxedQueryCharsConnectorCustomizer

* delete tomcat relaxedQueryChars code

* 优化tomcat配置relaxedQueryChars方式
2022-10-24 18:03:17 +08:00
kdjj2006 e0af08ebdd
优化部分badsmell:包括空指针风险以及多次使用变量的提取 (#772)
* 获取验证码逻辑,无需加锁,不涉及线程安全问题,提高效率

* 自定义生成策略时,Map容量设置不准确,会导致无必要的扩容

* 优化badsmell:包括空指针以及多次使用变量的提取

* 修改优化部分badsmeall
2022-10-24 18:00:30 +08:00
Zheng Jie 5cfa96e127 update domain 2022-08-02 13:48:48 +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
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 d78e1decb3 新增 AuthorityDto 类,避免 GrantedAuthority 序列化报错问题 2022-05-24 16:34:47 +08:00
Zheng Jie e37d485b4b update 2022-05-20 13:26:42 +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
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
Dawei-Simayi 70a3d7550b
HashMap的容量一定是2的整数幂 (#711) 2021-12-23 15:55:40 +08:00
Zheng Jie 0ebbd66acb 代码优化 2021-12-10 16:18:42 +08:00
Zheng Jie d9d50d3594 代码优化 2021-12-04 14:43:52 +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
Emil-Zhang 38262e06b2
修复手动清除子任务id后导致运行定时任务报错 (#671) 2021-09-01 16:31:31 +08:00
yuyu1025 6c75df558e
Update MenuServiceImpl.java (#656)
防止isQuery为空时自动拆箱出现NullPointerException
2021-07-19 14:21:07 +08:00
Elune 3637ae0240 !24 修复yml配置ddl-auto配置不生效
Merge pull request !24 from 李恒/master
2021-07-19 06:15:58 +00: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
Tsln 19214fd592
更新 JNA 版本,适配 Apple M1 芯片 (#631) 2021-04-27 14:29:13 +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