Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
micro_app
gk
Commits
32759551
Commit
32759551
authored
Aug 23, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(redis): 新增redis连接数+自定义项解析处理
parent
bd231c5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
RemoteService.java
...com/dlbridge/jadp/plugins/cmpt/service/RemoteService.java
+11
-7
application-production.properties
src/main/resources/application-production.properties
+3
-3
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/RemoteService.java
View file @
32759551
...
...
@@ -304,14 +304,18 @@ public class RemoteService {
// 解析自定义项内容
if
(
StringUtils
.
isNotBlank
(
remark
)){
Gson
itemGson
=
new
Gson
();
List
<
Remark
>
remarkList
=
itemGson
.
fromJson
(
remark
,
new
TypeToken
<
List
<
Remark
>>(){}.
getType
());
for
(
Remark
remarkItem
:
remarkList
){
String
customName
=
userDefineMap
.
get
(
remarkItem
.
getId
());
String
value
=
remarkItem
.
getValue
();
if
(
"个人头像"
.
equals
(
customName
)){
// 取第一张作为个人头像
imgUrl
=
value
.
split
(
";"
)[
0
];
try
{
List
<
Remark
>
remarkList
=
itemGson
.
fromJson
(
remark
,
new
TypeToken
<
List
<
Remark
>>(){}.
getType
());
for
(
Remark
remarkItem
:
remarkList
){
String
customName
=
userDefineMap
.
get
(
remarkItem
.
getId
());
String
value
=
remarkItem
.
getValue
();
if
(
"个人头像"
.
equals
(
customName
)){
// 取第一张作为个人头像
imgUrl
=
value
.
split
(
";"
)[
0
];
}
}
}
catch
(
Exception
e
){
log
.
error
(
"解析自定义项内容失败"
,
e
);
}
}
}
...
...
src/main/resources/application-production.properties
View file @
32759551
...
...
@@ -52,11 +52,11 @@ server.url.https=https://zs.geexek.com/
spring.redis.cluster.max-redirects
=
3
spring.redis.cluster.nodes
=
192.168.214.227:7001,192.168.214.227:7002,192.168.214.227:7003
# ????? ???????
spring.redis.jedis.pool.max-active
=
5
0
spring.redis.jedis.pool.max-active
=
6
0
# ???????
spring.redis.jedis.pool.max-idle
=
3
0
spring.redis.jedis.pool.max-idle
=
4
0
# ???????
spring.redis.jedis.pool.min-idle
=
1
0
spring.redis.jedis.pool.min-idle
=
2
0
# ?????????????????????
spring.redis.jedis.pool.max-wait
=
2000ms
...
...
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