Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
a7c1b04c
"eladmin-common/vscode:/vscode.git/clone" did not exist on "7167f29276e96a76262f6b3709896eac86fce2fe"
Commit
a7c1b04c
authored
May 24, 2022
by
Zheng Jie
Browse files
Merge branch 'master' into deploy
parents
9c520d9d
3ed53836
Changes
2
Hide whitespace changes
Inline
Side-by-side
eladmin-common/src/main/java/me/zhengjie/utils/RedisUtils.java
View file @
a7c1b04c
...
...
@@ -23,6 +23,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.data.redis.connection.RedisConnection
;
import
org.springframework.data.redis.connection.RedisConnectionFactory
;
import
org.springframework.data.redis.core.*
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
import
org.springframework.stereotype.Component
;
import
java.util.*
;
...
...
@@ -41,6 +42,9 @@ public class RedisUtils {
public
RedisUtils
(
RedisTemplate
<
Object
,
Object
>
redisTemplate
)
{
this
.
redisTemplate
=
redisTemplate
;
this
.
redisTemplate
.
setHashKeySerializer
(
new
StringRedisSerializer
());
this
.
redisTemplate
.
setKeySerializer
(
new
StringRedisSerializer
());
this
.
redisTemplate
.
setStringSerializer
(
new
StringRedisSerializer
());
}
/**
...
...
pom.xml
View file @
a7c1b04c
...
...
@@ -34,7 +34,7 @@
<java.version>
1.8
</java.version>
<log4jdbc.version>
1.16
</log4jdbc.version>
<swagger.version>
2.9.2
</swagger.version>
<fastjson.version>
1.2.
70
</fastjson.version>
<fastjson.version>
1.2.
83
</fastjson.version>
<druid.version>
1.1.24
</druid.version>
<commons-pool2.version>
2.5.0
</commons-pool2.version>
<mapstruct.version>
1.3.1.Final
</mapstruct.version>
...
...
Write
Preview
Supports
Markdown
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