Comments (1)
io.geekidea.springbootplus.config.RedisTemplateConfig
类中设置redis的value时,使用StringRedisSerializer序列化,不使用Json相关序列化
修改RedisTemplateConfig.redisTemplate方法中的
redisTemplate.setValueSerializer(jsonRedisSerializer);
为
redisTemplate.setValueSerializer(new StringRedisSerializer());
此时由于修改了redis存值的序列化方式,原本直接将对象存入redis的地方会报错,逐步修改redisTemplate.opsForValue().set()的使用,将值对象转成字符串(JSON字符串)后再存值(调用该对象的toString方法或者使用JSON工具类将对象转成JSON字符串)。
from spring-boot-plus.
Related Issues (20)
- How can I run the generator-2.0.jar ?
- 有单module版本么 HOT 1
- bootstrap启动失败 HOT 1
- How can urlmapping such as from /a/b/c to /abc ?
- swagger填写单个路径不生效
- 能否根据openapi的yaml文件生成服务端代码并与spring-boot-plus现有功能整合?
- IpAddressMapper.xml中使用了MySQL数据库方言INET_ATON,更换其他数据源导致报错
- layui edit的数据绑定怎么实现的
- 系统管理-各翻页接口报错 HOT 1
- 某账号在已经登录的情况下管理员禁用,但还可以使用
- 前后端分离,如何实现接口请求路径带ip:port/api/,静态资源不带/api/ HOT 4
- 异步保存日志信息到数据库的注解@Async没有生效 HOT 1
- ApiResult类中 result(ApiCode apiCode,String message,T data)方法,自定义message未生效
- 表主键采用的是雪花策略,代码生成的实体中主键校验依然存在,建议去除
- log4j bug
- spring-boot-starter-actuator找不到为什么呢
- How to deploy HOT 2
- 类型转换错误异常ClassCastException HOT 2
- failed start HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-plus.