单元测试,接入 h2 实现单元测试

This commit is contained in:
YunaiV
2021-02-28 13:29:24 +08:00
parent 99855e7cdc
commit 2f0d7e8aba
11 changed files with 371 additions and 49 deletions

View File

@ -27,7 +27,7 @@ public class RedisConfig {
template.setConnectionFactory(factory);
// 使用 String 序列化方式,序列化 KEY 。
template.setKeySerializer(RedisSerializer.string());
// 使用 JSON 序列化方式(库是 FastJSON ),序列化 VALUE 。
// 使用 JSON 序列化方式(库是 Jackson ),序列化 VALUE 。
template.setValueSerializer(RedisSerializer.json());
return template;
}