Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
街头小贩
Jforum2
提交
853d6d77
J
Jforum2
项目概览
街头小贩
/
Jforum2
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
Jforum2
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
853d6d77
编写于
9月 08, 2020
作者:
街头小贩
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
不再依赖spring-jcl
上级
7f9c46a0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
2 deletion
+8
-2
thrones.admin/pom.xml
thrones.admin/pom.xml
+2
-2
thrones.admin/src/main/java/com/apobates/forum/thrones/admin/ThronesAdminAppConfig.java
...m/apobates/forum/thrones/admin/ThronesAdminAppConfig.java
+6
-0
未找到文件。
thrones.admin/pom.xml
浏览文件 @
853d6d77
...
@@ -120,8 +120,8 @@
...
@@ -120,8 +120,8 @@
<version>
${spring-framework.version}
</version>
<version>
${spring-framework.version}
</version>
<exclusions>
<exclusions>
<exclusion>
<exclusion>
<groupId>
commons-logging
</groupId>
<groupId>
org.springframework
</groupId>
<artifactId>
commons-logging
</artifactId>
<artifactId>
spring-jcl
</artifactId>
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
...
...
thrones.admin/src/main/java/com/apobates/forum/thrones/admin/ThronesAdminAppConfig.java
浏览文件 @
853d6d77
...
@@ -25,6 +25,8 @@ import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
...
@@ -25,6 +25,8 @@ import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
import
org.springframework.data.redis.connection.jedis.JedisClientConfiguration
;
import
org.springframework.data.redis.connection.jedis.JedisClientConfiguration
;
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.StringRedisSerializer
;
import
org.springframework.orm.jpa.JpaTransactionManager
;
import
org.springframework.orm.jpa.JpaTransactionManager
;
import
org.springframework.orm.jpa.JpaVendorAdapter
;
import
org.springframework.orm.jpa.JpaVendorAdapter
;
import
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
;
import
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
;
...
@@ -156,6 +158,10 @@ public class ThronesAdminAppConfig {
...
@@ -156,6 +158,10 @@ public class ThronesAdminAppConfig {
public
RedisTemplate
<
String
,
Object
>
redisTemplate
(
RedisConnectionFactory
cf
)
{
public
RedisTemplate
<
String
,
Object
>
redisTemplate
(
RedisConnectionFactory
cf
)
{
RedisTemplate
<
String
,
Object
>
redisTemplate
=
new
RedisTemplate
<>();
RedisTemplate
<
String
,
Object
>
redisTemplate
=
new
RedisTemplate
<>();
redisTemplate
.
setConnectionFactory
(
cf
);
redisTemplate
.
setConnectionFactory
(
cf
);
redisTemplate
.
setKeySerializer
(
new
StringRedisSerializer
());
redisTemplate
.
setValueSerializer
(
new
GenericJackson2JsonRedisSerializer
());
redisTemplate
.
setHashKeySerializer
(
new
StringRedisSerializer
());
redisTemplate
.
setHashValueSerializer
(
new
GenericJackson2JsonRedisSerializer
());
return
redisTemplate
;
return
redisTemplate
;
}
}
@Bean
@Bean
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录