关于redis缓存访问list接口报错的问题
来源:13-9 redis缓存的使用(上)
慕侠4636025
2019-12-25
为什么我一访问list接口就会报类型转换错误啊,在idea中也没写是哪一行错误了。。。。是注解不对吗?
@GetMapping("/list")
@Cacheable(cacheNames = “product”,key = “123”)
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Dec 25 19:24:29 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
java.lang.Integer cannot be cast to java.lang.String
写回答
1回答
-
廖师兄
2019-12-25
检查@Cacheable的包路径是否正确
00
相似问题