Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
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
gechengyang
nouiWithSpringMVC
Commits
f212dcb5
Commit
f212dcb5
authored
Sep 14, 2020
by
tangzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改redisPassword错误
parent
fd9f0dee
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
15 deletions
+5
-15
RedisListenerConfig.java
.../org/sss/presentation/noui/redis/RedisListenerConfig.java
+1
-9
RedisStandaloneConfigurationExt1.java
...entation/noui/redis/RedisStandaloneConfigurationExt1.java
+2
-3
RedisStandaloneConfigurationExt2.java
...entation/noui/redis/RedisStandaloneConfigurationExt2.java
+2
-3
No files found.
src/main/java/org/sss/presentation/noui/redis/RedisListenerConfig.java
View file @
f212dcb5
...
@@ -4,7 +4,6 @@ import log.Log;
...
@@ -4,7 +4,6 @@ import log.Log;
import
log.LogFactory
;
import
log.LogFactory
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.data.redis.connection.RedisPassword
;
import
org.springframework.data.redis.connection.jedis.JedisConnectionFactory
;
import
org.springframework.data.redis.connection.jedis.JedisConnectionFactory
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer
;
import
org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer
;
...
@@ -15,11 +14,10 @@ import javax.annotation.Resource;
...
@@ -15,11 +14,10 @@ import javax.annotation.Resource;
@Configuration
@Configuration
public
class
RedisListenerConfig
{
public
class
RedisListenerConfig
{
@Resource
private
RedisBalanceProperties
redisProperties
;
@Resource
@Resource
private
StringRedisSerializer
keySerializer
;
private
StringRedisSerializer
keySerializer
;
@Resource
@Resource
private
GenericJackson2JsonRedisSerializer
valueSerializer
;
private
GenericJackson2JsonRedisSerializer
valueSerializer
;
...
@@ -67,10 +65,4 @@ public class RedisListenerConfig {
...
@@ -67,10 +65,4 @@ public class RedisListenerConfig {
return
redisTemplate
;
return
redisTemplate
;
}
}
@Bean
(
"redisPassword"
)
public
RedisPassword
redisPassword
()
{
return
RedisPassword
.
of
(
redisProperties
.
getPassWord1
());
}
}
}
src/main/java/org/sss/presentation/noui/redis/RedisStandaloneConfigurationExt1.java
View file @
f212dcb5
...
@@ -17,8 +17,7 @@ public class RedisStandaloneConfigurationExt1 extends RedisStandaloneConfigurati
...
@@ -17,8 +17,7 @@ public class RedisStandaloneConfigurationExt1 extends RedisStandaloneConfigurati
@Resource
@Resource
private
RedisStandaloneConfiguration
redisStandaloneConfiguration1
;
private
RedisStandaloneConfiguration
redisStandaloneConfiguration1
;
@Resource
private
RedisPassword
redisPassword
;
@Resource
@Resource
private
RedisBalanceProperties
redisProperties
;
private
RedisBalanceProperties
redisProperties
;
...
@@ -44,7 +43,7 @@ public class RedisStandaloneConfigurationExt1 extends RedisStandaloneConfigurati
...
@@ -44,7 +43,7 @@ public class RedisStandaloneConfigurationExt1 extends RedisStandaloneConfigurati
{
{
return
RedisPassword
.
none
();
return
RedisPassword
.
none
();
}
}
String
miwen
=
String
.
valueOf
(
redisP
assword
.
get
());
String
miwen
=
String
.
valueOf
(
redisP
roperties
.
getPassWord1
());
try
{
try
{
String
mingwen
=
new
String
(
new
BASE64Decoder
().
decodeBuffer
(
miwen
),
"utf-8"
);
String
mingwen
=
new
String
(
new
BASE64Decoder
().
decodeBuffer
(
miwen
),
"utf-8"
);
return
RedisPassword
.
of
(
mingwen
);
return
RedisPassword
.
of
(
mingwen
);
...
...
src/main/java/org/sss/presentation/noui/redis/RedisStandaloneConfigurationExt2.java
View file @
f212dcb5
...
@@ -17,8 +17,7 @@ public class RedisStandaloneConfigurationExt2 extends RedisStandaloneConfigurati
...
@@ -17,8 +17,7 @@ public class RedisStandaloneConfigurationExt2 extends RedisStandaloneConfigurati
@Resource
@Resource
private
RedisStandaloneConfiguration
redisStandaloneConfiguration2
;
private
RedisStandaloneConfiguration
redisStandaloneConfiguration2
;
@Resource
private
RedisPassword
redisPassword
;
@Resource
@Resource
private
RedisBalanceProperties
redisProperties
;
private
RedisBalanceProperties
redisProperties
;
...
@@ -46,7 +45,7 @@ public class RedisStandaloneConfigurationExt2 extends RedisStandaloneConfigurati
...
@@ -46,7 +45,7 @@ public class RedisStandaloneConfigurationExt2 extends RedisStandaloneConfigurati
return
RedisPassword
.
none
();
return
RedisPassword
.
none
();
}
}
String
miwen
=
String
.
valueOf
(
redisP
assword
.
get
());
String
miwen
=
String
.
valueOf
(
redisP
roperties
.
getPassWord1
());
try
{
try
{
String
mingwen
=
new
String
(
new
BASE64Decoder
().
decodeBuffer
(
miwen
),
"utf-8"
);
String
mingwen
=
new
String
(
new
BASE64Decoder
().
decodeBuffer
(
miwen
),
"utf-8"
);
return
RedisPassword
.
of
(
mingwen
);
return
RedisPassword
.
of
(
mingwen
);
...
...
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