Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄营
datax-cloud
Commits
da8cbfef
Commit
da8cbfef
authored
May 07, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.0项目初始化
parent
d5c8fcfa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
RedissonConfig.java
...ain/java/cn/datax/common/redis/config/RedissonConfig.java
+0
-3
No files found.
datax-common/datax-common-redis/src/main/java/cn/datax/common/redis/config/RedissonConfig.java
View file @
da8cbfef
...
@@ -19,8 +19,6 @@ public class RedissonConfig {
...
@@ -19,8 +19,6 @@ public class RedissonConfig {
private
String
port
;
private
String
port
;
@Value
(
"${spring.redis.password}"
)
@Value
(
"${spring.redis.password}"
)
private
String
password
;
private
String
password
;
@Value
(
"${spring.redis.timeout}"
)
private
int
timeout
;
/**
/**
* RedissonClient,单机模式
* RedissonClient,单机模式
...
@@ -32,7 +30,6 @@ public class RedissonConfig {
...
@@ -32,7 +30,6 @@ public class RedissonConfig {
Config
config
=
new
Config
();
Config
config
=
new
Config
();
SingleServerConfig
singleServerConfig
=
config
.
useSingleServer
();
SingleServerConfig
singleServerConfig
=
config
.
useSingleServer
();
singleServerConfig
.
setAddress
(
"redis://"
+
host
+
":"
+
port
);
singleServerConfig
.
setAddress
(
"redis://"
+
host
+
":"
+
port
);
singleServerConfig
.
setTimeout
(
timeout
);
singleServerConfig
.
setDatabase
(
database
);
singleServerConfig
.
setDatabase
(
database
);
if
(
password
!=
null
&&
!
""
.
equals
(
password
))
{
if
(
password
!=
null
&&
!
""
.
equals
(
password
))
{
singleServerConfig
.
setPassword
(
password
);
singleServerConfig
.
setPassword
(
password
);
...
...
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