Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
c0459159
Commit
c0459159
authored
Mar 01, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:【空工大】新建mass数据源时,提前查询是否已经新增过
parent
c6de9800
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
ClientHandler.java
.../main/java/com/yeejoin/amos/kgd/config/ClientHandler.java
+0
-0
SocketConfig.java
...c/main/java/com/yeejoin/amos/kgd/config/SocketConfig.java
+5
-1
application-dev.properties
...-system-kgd/src/main/resources/application-dev.properties
+4
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-kgd-api/src/main/java/com/yeejoin/amos/kgd/config/ClientHandler.java
View file @
c0459159
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-api/amos-boot-module-kgd-api/src/main/java/com/yeejoin/amos/kgd/config/SocketConfig.java
View file @
c0459159
...
@@ -40,6 +40,10 @@ public class SocketConfig {
...
@@ -40,6 +40,10 @@ public class SocketConfig {
@Value
(
"${spring.datasource.password}"
)
@Value
(
"${spring.datasource.password}"
)
private
String
password
;
private
String
password
;
@Value
(
"${kgd.datasource.password.secretKey}"
)
private
String
passwordSecretKey
;
@Value
(
"${kgd.datasource.group_id}"
)
@Value
(
"${kgd.datasource.group_id}"
)
private
String
dataSourcesGroupId
;
private
String
dataSourcesGroupId
;
...
@@ -64,7 +68,7 @@ public class SocketConfig {
...
@@ -64,7 +68,7 @@ public class SocketConfig {
clientSocket
.
setSoTimeout
(
10000
);
clientSocket
.
setSoTimeout
(
10000
);
// 创建新线程处理连接
// 创建新线程处理连接
log
.
info
(
"接收到客户端socket: {}"
,
clientSocket
.
getRemoteSocketAddress
());
log
.
info
(
"接收到客户端socket: {}"
,
clientSocket
.
getRemoteSocketAddress
());
threadpool
.
execute
(
new
ClientHandler
(
clientSocket
,
hostAndPort
,
url
,
username
,
password
,
dataSourcesGroupId
));
threadpool
.
execute
(
new
ClientHandler
(
clientSocket
,
hostAndPort
,
url
,
username
,
password
,
passwordSecretKey
,
dataSourcesGroupId
));
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
...
...
amos-boot-system-kgd/src/main/resources/application-dev.properties
View file @
c0459159
...
@@ -70,4 +70,6 @@ spring.security.user.name=admin
...
@@ -70,4 +70,6 @@ spring.security.user.name=admin
spring.security.user.password
=
a1234560
spring.security.user.password
=
a1234560
## \u7A7A\u5DE5\u5927\u6570\u636E\u6E90\u6240\u5C5E\u5206\u7C7BId
## \u7A7A\u5DE5\u5927\u6570\u636E\u6E90\u6240\u5C5E\u5206\u7C7BId
kgd.datasource.group_id
=
534de50c-bb8c-4450-87a0-557aac745a94
kgd.datasource.group_id
=
534de50c-bb8c-4450-87a0-557aac745a94
\ No newline at end of file
## ??????????????
kgd.datasource.password.secretKey
=
yeejoin,maas,password
\ No newline at end of file
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