Commit Graph

694 Commits (deploy)

Author SHA1 Message Date
Zheng Jie 3980933644 update 2022-04-12 10:14:48 +08:00
Zheng Jie b5cdf5512b update 2022-03-31 10:57:01 +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 15753e73d8 文件超出规定大小提示优化 2022-03-18 14:30:47 +08:00
Zheng Jie 7e85fb2e25 文件超出规定大小提示优化 2022-03-18 14:10:12 +08:00
Zheng Jie 7bf78d32ba 限制文件上传大小 2022-03-18 14:08:58 +08:00
luoqiangzheng@hz-cpp.com 837f23080b 升级依赖包 2022-03-14 15:05:25 +08:00
Zheng Jie 4eeabb843b update 2022-03-14 11:32:59 +08:00
Zheng Jie 665e357414 update 2022-03-14 08:25:50 +08:00
Zheng Jie 7cbca07b20 update 2022-03-14 08:25:21 +08:00
Zheng Jie 10aee59eef update 2022-03-14 08:17:19 +08:00
Zheng Jie d52ce06370 update 2022-03-14 08:16:37 +08:00
Zheng Jie 9fab663691 Merge branch 'master' into deploy
# Conflicts:
#	eladmin-system/src/main/java/me/zhengjie/AppRun.java
2022-03-07 14:15:18 +08:00
Zheng Jie b9aca9366d 启动时可选记录pid 2022-03-07 14:12:58 +08:00
Zheng Jie d4514c384e 启动时记录pid 2022-03-07 13:24:16 +08:00
Zheng Jie c5723649e6 监控服务运行状态 2022-03-07 13:09:55 +08:00
YJRY e06ec08400
[代码优化]枚举值调整为统一大写;枚举的find方法优化 (#730)
Co-authored-by: xuqi <xuqi@zed.com>
2022-03-04 09:52:37 +08:00
Zheng Jie 78d5d406da 监控服务运行状态 2022-03-03 13:27:32 +08:00
Zheng Jie fa0564c3f4 update 2022-03-01 12:14:40 +08:00
Zheng Jie 788aaf3370 Merge branch 'master' into deploy 2022-02-28 09:58:49 +08:00
Zheng Jie 0705b123be Merge branch 'master' of https://github.com/Tiki-77/eladmin 2022-02-28 09:43:13 +08:00
Zheng Jie e39ae1cbef update 2022-02-28 08:23:37 +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
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