缓存: Null key returned for cache operation (maybe you are using named params on classes without debug
来源:互联网 发布:淘宝联盟 旧版 编辑:程序博客网 时间:2024/06/07 22:04
错误:
Null key returned for cache operation (maybe you are using named params on classes without debug info?) Builder[public java.lang.String com.gwm.service.impl.TestService.selectById(java.io.Serializable)] caches=[hour] | key='#id' | keyGenerator='' | cacheManager='' | cacheResolver='' | condition='' | unless='' | sync='false'
调用方法:
@Cacheable(value = "hour", key = "#id")
public String selectById(Serializable id) {
Long timestamp = System.currentTimeMillis();
return timestamp.toString();
出错原因: key中的id 没有传值,在调用方法时,不能传null值。
eg:
Serializable id = "aa";
String meg=testService.selectById(id); 传上值!!!!!
阅读全文
1 0
- 缓存: Null key returned for cache operation (maybe you are using named params on classes without debug
- Are You Using Abstract Classes, Polymorphism, and Interfaces? @ JDJ
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- Name for parameter binding must not be null or empty! On JDKs < 8, you need to use @Param for named
- Are you looking for a way to get the entire text of a word document into a RichEdit without using the Clipboard?
- ErrorCode:1175.You are using safe update mode and you tried to update a table without a WHERE that u
- Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE tha
- Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that
- You are using safe update mode and you tried to update a table without a WHERE that uses a K
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses
- Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that
- Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that
- Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that
- Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that
- 【与分数和平共处:父母对孩子合理…
- 【要喜欢自己不需要理由,只要觉得…
- 【让标籤黏不住的力量】「妈妈,同…
- 2017暑假训练之并查集
- 【思考霸凌与面对霸凌】小时候就读…
- 缓存: Null key returned for cache operation (maybe you are using named params on classes without debug
- [python] logging模块
- 【绝对性地原谅自己】我想在感情上…
- 【相处容易相爱难!】老师,我觉得…
- Spring Scheduled + Redis 实现分布式定时器(二)
- 【爱的长久,就是幸福吗?】在一起…
- 【还天真的孩子一个快乐童年】父母…
- 【遇到小尺寸,女人会不会怕?】许…
- 【孩子,是父母再累也能前行的勇气…