Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GnssServer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhushanglei
GnssServer
Commits
1c60a80a
Commit
1c60a80a
authored
Aug 19, 2022
by
zhushanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gps数据采集修改redis
parent
167ed878
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
TcpClient.java
src/main/java/client/TcpClient.java
+6
-0
No files found.
src/main/java/client/TcpClient.java
View file @
1c60a80a
...
@@ -31,6 +31,9 @@ public class TcpClient {
...
@@ -31,6 +31,9 @@ public class TcpClient {
public
static
String
HOST
;
public
static
String
HOST
;
public
static
String
PORT
;
public
static
String
PORT
;
public
static
String
deviceId
;
public
static
String
deviceId
;
public
static
String
redisHost
;
public
static
int
redisPort
;
public
static
String
redisPass
;
static
{
static
{
InputStream
in
=
ClassLoader
.
getSystemResourceAsStream
(
"config.properties"
);
InputStream
in
=
ClassLoader
.
getSystemResourceAsStream
(
"config.properties"
);
...
@@ -109,6 +112,9 @@ public class TcpClient {
...
@@ -109,6 +112,9 @@ public class TcpClient {
InputStream
in
=
ClassLoader
.
getSystemResourceAsStream
(
"config.properties"
);
InputStream
in
=
ClassLoader
.
getSystemResourceAsStream
(
"config.properties"
);
config
.
load
(
in
);
config
.
load
(
in
);
TcpClientHandler
.
serverUrl
=
config
.
getProperty
(
"serverUrl"
);
TcpClientHandler
.
serverUrl
=
config
.
getProperty
(
"serverUrl"
);
redisHost
=
config
.
getProperty
(
"redis.host"
);
redisPort
=
Integer
.
parseInt
(
config
.
getProperty
(
"redis.port"
));
redisPass
=
config
.
getProperty
(
"redis.pass"
);
logger
.
info
(
"服务器后端接口>>"
+
TcpClientHandler
.
serverUrl
);
logger
.
info
(
"服务器后端接口>>"
+
TcpClientHandler
.
serverUrl
);
TcpClient
.
sendMsg
(
client
);
TcpClient
.
sendMsg
(
client
);
...
...
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