Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
26717455
Commit
26717455
authored
Jan 05, 2022
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复log4j和logback的漏洞
parent
ce4ba33c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
32 additions
and
21 deletions
+32
-21
api-server/src/main/resources/application.yml
+2
-1
civil-common-utils/pom.xml
+9
-3
civil-common-utils/src/main/java/com/zq/common/config/mybatis/MybatisConfig.java
+7
-8
oauth-server/src/main/resources/application.yml
+1
-1
open-server/src/main/resources/application.yml
+2
-1
pom.xml
+6
-3
portal-server/src/main/resources/application.yml
+1
-1
resource-server/src/main/resources/application.yml
+1
-1
sync-server/src/main/resources/application.yml
+2
-1
user-server/src/main/resources/application.yml
+1
-1
No files found.
api-server/src/main/resources/application.yml
View file @
26717455
...
...
@@ -69,7 +69,7 @@ spring:
mybatis-plus
:
global-config
:
db-config
:
select
-strategy
:
not_empty
where
-strategy
:
not_empty
update-strategy
:
not_empty
#logging.level.com.zq.drug.dao: debug
\ No newline at end of file
civil-common-utils/pom.xml
View file @
26717455
...
...
@@ -62,7 +62,7 @@
<dependency>
<groupId>
com.github.pagehelper
</groupId>
<artifactId>
pagehelper
</artifactId>
<version>
5.
2.1
</version>
<version>
5.
3.0
</version>
</dependency>
<!--spring boot 集成redis所需common-pool2-->
...
...
@@ -82,7 +82,7 @@
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.
8
.0
</version>
<version>
2.
11
.0
</version>
</dependency>
<!--工具包-->
...
...
@@ -119,12 +119,18 @@
<dependency>
<groupId>
com.jfinal
</groupId>
<artifactId>
jfinal-weixin
</artifactId>
<version>
3.
1
</version>
<version>
3.
4
</version>
</dependency>
<dependency>
<groupId>
com.jfinal
</groupId>
<artifactId>
jfinal-ext3
</artifactId>
<version>
4.0.3
</version>
<exclusions>
<exclusion>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
...
...
civil-common-utils/src/main/java/com/zq/common/config/mybatis/MybatisConfig.java
View file @
26717455
...
...
@@ -21,7 +21,11 @@ public class MybatisConfig {
@Bean
public
MybatisPlusInterceptor
mybatisPlusInterceptor
()
{
MybatisPlusInterceptor
interceptor
=
new
MybatisPlusInterceptor
();
interceptor
.
addInnerInterceptor
(
new
PaginationInnerInterceptor
());
// 分页插件
PaginationInnerInterceptor
paginationInnerInterceptor
=
new
PaginationInnerInterceptor
();
interceptor
.
addInnerInterceptor
(
paginationInnerInterceptor
);
return
interceptor
;
}
...
...
@@ -34,13 +38,8 @@ public class MybatisConfig {
public
PageInterceptor
pageInterceptor
()
{
PageInterceptor
pageInterceptor
=
new
PageInterceptor
();
Properties
properties
=
new
Properties
();
properties
.
setProperty
(
"offsetAsPageNum"
,
"false"
);
properties
.
setProperty
(
"rowBoundsWithCount"
,
"false"
);
properties
.
setProperty
(
"pageSizeZero"
,
"true"
);
properties
.
setProperty
(
"reasonable"
,
"false"
);
properties
.
setProperty
(
"supportMethodsArguments"
,
"false"
);
properties
.
setProperty
(
"returnPageInfo"
,
"none"
);
properties
.
setProperty
(
"autoRuntimeDialect"
,
"true"
);
// properties.setProperty("helperDialect", "mysql");//指定方言
properties
.
setProperty
(
"autoRuntimeDialect"
,
"true"
);
//自动获取方言
pageInterceptor
.
setProperties
(
properties
);
return
pageInterceptor
;
}
...
...
oauth-server/src/main/resources/application.yml
View file @
26717455
...
...
@@ -71,7 +71,7 @@ spring:
mybatis-plus
:
global-config
:
db-config
:
select
-strategy
:
not_empty
where
-strategy
:
not_empty
update-strategy
:
not_empty
#日志等级
...
...
open-server/src/main/resources/application.yml
View file @
26717455
...
...
@@ -77,5 +77,5 @@ spring:
mybatis-plus
:
global-config
:
db-config
:
select
-strategy
:
not_empty
where
-strategy
:
not_empty
update-strategy
:
not_empty
\ No newline at end of file
pom.xml
View file @
26717455
...
...
@@ -23,11 +23,14 @@
<swagger.version>
2.9.2
</swagger.version>
<alibaba.druid.version>
1.1.22
</alibaba.druid.version>
<mybatis.plus.version>
3.
4.3
</mybatis.plus.version>
<mybatis.plus.version>
3.
5.0
</mybatis.plus.version>
<pagehelper.version>
5.2.0
</pagehelper.version>
<jjwt.version>
0.9.1
</jjwt.version>
<fastjson.version>
1.2.76
</fastjson.version>
<hutool.version>
5.7.16
</hutool.version>
<fastjson.version>
1.2.79
</fastjson.version>
<hutool.version>
5.7.18
</hutool.version>
<logback.version>
1.2.10
</logback.version>
<log4j2.version>
2.17.1
</log4j2.version>
</properties>
<modules>
...
...
portal-server/src/main/resources/application.yml
View file @
26717455
...
...
@@ -121,5 +121,5 @@ spring:
mybatis-plus
:
global-config
:
db-config
:
select
-strategy
:
not_empty
where
-strategy
:
not_empty
update-strategy
:
not_empty
resource-server/src/main/resources/application.yml
View file @
26717455
...
...
@@ -71,7 +71,7 @@ spring:
mybatis-plus
:
global-config
:
db-config
:
select
-strategy
:
not_empty
where
-strategy
:
not_empty
update-strategy
:
not_empty
#日志等级
...
...
sync-server/src/main/resources/application.yml
View file @
26717455
...
...
@@ -53,5 +53,5 @@ spring:
mybatis-plus
:
global-config
:
db-config
:
select
-strategy
:
not_empty
where
-strategy
:
not_empty
update-strategy
:
not_empty
\ No newline at end of file
user-server/src/main/resources/application.yml
View file @
26717455
...
...
@@ -63,5 +63,5 @@ spring:
mybatis-plus
:
global-config
:
db-config
:
select
-strategy
:
not_empty
where
-strategy
:
not_empty
update-strategy
:
not_empty
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment