Compare commits

...

4 Commits

Author SHA1 Message Date
hjk2008 55fafbddb6
Pre Merge pull request !299 from hjk2008/N/A 2025-03-10 03:45:46 +00:00
若依 a6bcebb62b
!397 修复actuator暴漏问题
Merge pull request !397 from 威士忌的纯度/N/A
2025-03-10 03:45:34 +00:00
威士忌的纯度 1cb262daa3
修复actuator暴漏问题
Signed-off-by: 威士忌的纯度 <whr888888@vip.qq.com>
2025-03-07 10:22:52 +00:00
hjk2008 7c0be1fa97
修改时间工具类中的 `yyyy-MM-dd HH:mm:ss` 为常量,适用于需要用到常量的地方
Signed-off-by: hjk2008 <hjk2008ext@163.com>
2023-01-05 06:19:20 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ http {
}
# 避免actuator暴露
if ($request_uri ~ "/actuator") {
if ($uri ~ "/actuator") {
return 403;
}

View File

@ -26,7 +26,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
private static String[] parsePatterns = {
"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",