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
24214d63
Commit
24214d63
authored
Oct 20, 2023
by
chenzai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善上传功能,upload方法添加了shell和DataSources
parent
68b24cf9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
148 additions
and
26 deletions
+148
-26
amos-boot-jcs-system.iml
amos-boot-jcs-system/amos-boot-jcs-system.iml
+0
-0
ClientHandler.java
.../main/java/com/yeejoin/amos/kgd/config/ClientHandler.java
+135
-19
SocketConfig.java
...c/main/java/com/yeejoin/amos/kgd/config/SocketConfig.java
+4
-1
application-dev.properties
...-system-kgd/src/main/resources/application-dev.properties
+5
-5
application.properties
...boot-system-kgd/src/main/resources/application.properties
+4
-1
No files found.
amos-boot-jcs-system/amos-boot-jcs-system.iml
View file @
24214d63
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/ClientHandler.java
View file @
24214d63
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 @
24214d63
...
...
@@ -26,6 +26,9 @@ public class SocketConfig {
@Value
(
"${amos.system.socket.port}"
)
private
Integer
port
;
@Value
(
"${amos.system.socket.hostAndPort}"
)
private
String
hostAndPort
;
private
static
final
ThreadPoolExecutor
threadpool
=
new
ThreadPoolExecutor
(
15
,
15
,
10L
,
TimeUnit
.
SECONDS
,
new
LinkedBlockingQueue
<
Runnable
>());
...
...
@@ -46,7 +49,7 @@ public class SocketConfig {
clientSocket
.
setSoTimeout
(
10000
);
// 创建新线程处理连接
log
.
info
(
"接收到客户端socket: {}"
,
clientSocket
.
getRemoteSocketAddress
());
threadpool
.
execute
(
new
ClientHandler
(
clientSocket
));
threadpool
.
execute
(
new
ClientHandler
(
clientSocket
,
hostAndPort
));
}
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
...
...
amos-boot-system-kgd/src/main/resources/application-dev.properties
View file @
24214d63
## DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.3.
18
:3306/amos_idx_biz?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://172.16.3.
221
:3306/amos_idx_biz?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
## eureka properties:
eureka.instance.hostname
=
172.16.3.
18
eureka.instance.hostname
=
172.16.3.
221
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:10001/eureka/
## redis properties:
spring.redis.database
=
1
spring.redis.host
=
172.16.3.
18
spring.redis.host
=
172.16.3.
221
spring.redis.port
=
6379
spring.redis.password
=
yeejoin@2020
...
...
@@ -43,13 +43,13 @@ lettuce.timeout=10000
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.3.
18
:2883
emqx.broker
=
tcp://172.16.3.
221
:2883
emqx.client-user-name
=
super
emqx.client-password
=
a123456
emqx.max-inflight
=
1000
spring.influx.url
=
http://
39.98.246.3
1:8086
spring.influx.url
=
http://
172.16.3.22
1:8086
spring.influx.password
=
Yeejoin@2020
spring.influx.user
=
root
spring.influx.database
=
iot_platform
...
...
amos-boot-system-kgd/src/main/resources/application.properties
View file @
24214d63
...
...
@@ -55,8 +55,11 @@ spring.http.encoding.charset=utf-8
spring.http.encoding.enabled
=
true
spring.http.encoding.force
=
true
amos.system.socket.hostAndPort
=
172.16.3.221:10005
amos.system.socket.port
=
7777
amos.system.user.user-name
=
qms_sys
amos.system.user.user-name
=
kgd_gdd
amos.system.user.password
=
a1234560
amos.system.user.app-key
=
AMOS_STUDIO
amos.system.user.product
=
AMOS_STUDIO_WEB
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