Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
淡蓝色的忧伤ly
zhglxt
提交
1c8ac345
Z
zhglxt
项目概览
淡蓝色的忧伤ly
/
zhglxt
9 个月 前同步成功
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
代码片段
项目成员
Pages
Z
zhglxt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1c8ac345
编写于
12月 11, 2022
作者:
淡蓝色的忧伤ly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、升级druid到最新版本1.2.15
2、升级kaptcha到最新版2.3.3 3、升级oshi到最新版本6.3.2 4、其它优化
上级
638c6e44
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
15 addition
and
99 deletion
+15
-99
pom.xml
pom.xml
+5
-5
zhglxt-common/src/main/java/com/zhglxt/common/constant/Constants.java
...n/src/main/java/com/zhglxt/common/constant/Constants.java
+1
-1
zhglxt-common/src/main/java/com/zhglxt/common/utils/YamlUtil.java
...ommon/src/main/java/com/zhglxt/common/utils/YamlUtil.java
+0
-87
zhglxt-common/src/main/java/com/zhglxt/common/utils/file/FileUploadUtils.java
...in/java/com/zhglxt/common/utils/file/FileUploadUtils.java
+2
-2
zhglxt-framework/pom.xml
zhglxt-framework/pom.xml
+1
-1
zhglxt-generator/src/main/java/com/zhglxt/generator/service/impl/GenTableServiceImpl.java
...om/zhglxt/generator/service/impl/GenTableServiceImpl.java
+2
-2
zhglxt-web/src/main/resources/templates/main.html
zhglxt-web/src/main/resources/templates/main.html
+4
-1
未找到文件。
pom.xml
浏览文件 @
1c8ac345
...
...
@@ -23,15 +23,14 @@
<shiro.version>
1.10.1
</shiro.version>
<thymeleaf.extras.shiro.version>
2.1.0
</thymeleaf.extras.shiro.version>
<mybatis.boot.version>
2.2.2
</mybatis.boot.version>
<druid.version>
1.2.1
4
</druid.version>
<druid.version>
1.2.1
5
</druid.version>
<bitwalker.version>
1.21
</bitwalker.version>
<kaptcha.version>
2.3.
2
</kaptcha.version>
<kaptcha.version>
2.3.
3
</kaptcha.version>
<swagger.version>
3.0.0
</swagger.version>
<knife4j.version>
3.0.3
</knife4j.version>
<mybatis-spring-boot.version>
2.2.0
</mybatis-spring-boot.version>
<pagehelper.boot.version>
1.4.3
</pagehelper.boot.version>
<fastjson.version>
1.2.83
</fastjson.version>
<oshi.version>
6.3.
0
</oshi.version>
<oshi.version>
6.3.
2
</oshi.version>
<commons.io.version>
2.11.0
</commons.io.version>
<commons.fileupload.version>
1.4
</commons.fileupload.version>
<poi.version>
4.1.2
</poi.version>
...
...
@@ -40,6 +39,7 @@
<activiti.version>
5.23.0
</activiti.version>
<aop.version>
2.6.2
</aop.version>
<easyexcel.version>
3.1.1
</easyexcel.version>
<knife4j.version>
3.0.3
</knife4j.version>
</properties>
<!-- 依赖声明 -->
...
...
@@ -64,7 +64,7 @@
<!--验证码 -->
<dependency>
<groupId>
com.github.penggle
</groupId>
<groupId>
pro.fessional
</groupId>
<artifactId>
kaptcha
</artifactId>
<version>
${kaptcha.version}
</version>
</dependency>
...
...
zhglxt-common/src/main/java/com/zhglxt/common/constant/Constants.java
浏览文件 @
1c8ac345
...
...
@@ -109,5 +109,5 @@ public class Constants {
/**
* 定时任务违规的字符
*/
public
static
final
String
[]
JOB_ERROR_STR
=
{
"java.net.URL"
,
"javax.naming.InitialContext"
,
"org.yaml.snakeyaml"
,
"org.springframework"
,
"com.zhglxt.common.util
.file
"
};
public
static
final
String
[]
JOB_ERROR_STR
=
{
"java.net.URL"
,
"javax.naming.InitialContext"
,
"org.yaml.snakeyaml"
,
"org.springframework"
,
"com.zhglxt.common.util
s.file"
,
"com.zhglxt.common.config
"
};
}
zhglxt-common/src/main/java/com/zhglxt/common/utils/YamlUtil.java
已删除
100644 → 0
浏览文件 @
638c6e44
package
com.zhglxt.common.utils
;
import
org.yaml.snakeyaml.DumperOptions
;
import
org.yaml.snakeyaml.Yaml
;
import
java.io.FileNotFoundException
;
import
java.io.FileWriter
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
/**
* 配置处理工具类
*
* @author yml
*/
public
class
YamlUtil
{
public
static
Map
<?,
?>
loadYaml
(
String
fileName
)
throws
FileNotFoundException
{
InputStream
in
=
YamlUtil
.
class
.
getClassLoader
().
getResourceAsStream
(
fileName
);
return
StringUtils
.
isNotEmpty
(
fileName
)
?
(
LinkedHashMap
<?,
?>)
new
Yaml
().
load
(
in
)
:
null
;
}
public
static
void
dumpYaml
(
String
fileName
,
Map
<?,
?>
map
)
throws
IOException
{
if
(
StringUtils
.
isNotEmpty
(
fileName
))
{
FileWriter
fileWriter
=
new
FileWriter
(
YamlUtil
.
class
.
getResource
(
fileName
).
getFile
());
DumperOptions
options
=
new
DumperOptions
();
options
.
setDefaultFlowStyle
(
DumperOptions
.
FlowStyle
.
BLOCK
);
Yaml
yaml
=
new
Yaml
(
options
);
yaml
.
dump
(
map
,
fileWriter
);
}
}
public
static
Object
getProperty
(
Map
<?,
?>
map
,
Object
qualifiedKey
)
{
if
(
map
!=
null
&&
!
map
.
isEmpty
()
&&
qualifiedKey
!=
null
)
{
String
input
=
String
.
valueOf
(
qualifiedKey
);
if
(!
""
.
equals
(
input
))
{
if
(
input
.
contains
(
"."
))
{
int
index
=
input
.
indexOf
(
"."
);
String
left
=
input
.
substring
(
0
,
index
);
String
right
=
input
.
substring
(
index
+
1
,
input
.
length
());
return
getProperty
((
Map
<?,
?>)
map
.
get
(
left
),
right
);
}
else
if
(
map
.
containsKey
(
input
))
{
return
map
.
get
(
input
);
}
else
{
return
null
;
}
}
}
return
null
;
}
@SuppressWarnings
(
"unchecked"
)
public
static
void
setProperty
(
Map
<?,
?>
map
,
Object
qualifiedKey
,
Object
value
)
{
if
(
map
!=
null
&&
!
map
.
isEmpty
()
&&
qualifiedKey
!=
null
)
{
String
input
=
String
.
valueOf
(
qualifiedKey
);
if
(!
""
.
equals
(
input
))
{
if
(
input
.
contains
(
"."
))
{
int
index
=
input
.
indexOf
(
"."
);
String
left
=
input
.
substring
(
0
,
index
);
String
right
=
input
.
substring
(
index
+
1
,
input
.
length
());
setProperty
((
Map
<?,
?>)
map
.
get
(
left
),
right
,
value
);
}
else
{
((
Map
<
Object
,
Object
>)
map
).
put
(
qualifiedKey
,
value
);
}
}
}
}
}
\ No newline at end of file
zhglxt-common/src/main/java/com/zhglxt/common/utils/file/FileUploadUtils.java
浏览文件 @
1c8ac345
...
...
@@ -91,8 +91,8 @@ public class FileUploadUtils {
public
static
final
String
upload
(
String
baseDir
,
MultipartFile
file
,
String
[]
allowedExtension
)
throws
FileSizeLimitExceededException
,
IOException
,
FileNameLengthLimitExceededException
,
InvalidExtensionException
{
int
fileName
l
ength
=
Objects
.
requireNonNull
(
file
.
getOriginalFilename
()).
length
();
if
(
fileName
l
ength
>
FileUploadUtils
.
DEFAULT_FILE_NAME_LENGTH
)
{
int
fileName
L
ength
=
Objects
.
requireNonNull
(
file
.
getOriginalFilename
()).
length
();
if
(
fileName
L
ength
>
FileUploadUtils
.
DEFAULT_FILE_NAME_LENGTH
)
{
throw
new
FileNameLengthLimitExceededException
(
FileUploadUtils
.
DEFAULT_FILE_NAME_LENGTH
);
}
...
...
zhglxt-framework/pom.xml
浏览文件 @
1c8ac345
...
...
@@ -35,7 +35,7 @@
<!--验证码 -->
<dependency>
<groupId>
com.github.penggle
</groupId>
<groupId>
pro.fessional
</groupId>
<artifactId>
kaptcha
</artifactId>
<version>
${kaptcha.version}
</version>
<!-- 去除内置tomcat时,要把验证码的这个exclusions去掉。因为tomcat排除后需要servlet -->
...
...
zhglxt-generator/src/main/java/com/zhglxt/generator/service/impl/GenTableServiceImpl.java
浏览文件 @
1c8ac345
...
...
@@ -123,8 +123,8 @@ public class GenTableServiceImpl implements IGenTableService {
genTable
.
setOptions
(
options
);
int
row
=
genTableMapper
.
updateGenTable
(
genTable
);
if
(
row
>
0
)
{
for
(
GenTableColumn
c
enTableColumn
:
genTable
.
getColumns
())
{
genTableColumnMapper
.
updateGenTableColumn
(
c
enTableColumn
);
for
(
GenTableColumn
g
enTableColumn
:
genTable
.
getColumns
())
{
genTableColumnMapper
.
updateGenTableColumn
(
g
enTableColumn
);
}
}
}
...
...
zhglxt-web/src/main/resources/templates/main.html
浏览文件 @
1c8ac345
...
...
@@ -56,12 +56,15 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h5
class=
"panel-title"
>
<a
data-toggle=
"collapse"
data-parent=
"#version"
href=
"#latest_version"
>
latest version
</a><code
class=
"pull-right"
>
2022.09.07-2022.1
1.29
</code>
<a
data-toggle=
"collapse"
data-parent=
"#version"
href=
"#latest_version"
>
latest version
</a><code
class=
"pull-right"
>
2022.09.07-2022.1
2.11
</code>
</h5>
</div>
<div
id=
"latest_version"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<ol>
<li>
升级druid到最新版本1.2.15
</li>
<li>
升级kaptcha到最新版2.3.3
</li>
<li>
升级oshi到最新版本6.3.2
</li>
<li>
升级shiro到最新版本1.10.1
</li>
<li>
优化用户管理重置时取消部门选择(I621OJ)
</li>
<li>
兼容Excel下拉框内容过多无法显示的问题(I61HCG)
</li>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录