SpringMVC中将serviceImpl的方法返回值缓存在redis中,发现@Cacheable失效

@Cacheable不起作用的原因:bean未序列化

原来是返回的Blogger自定义实体类没有实现序列化接口,无法存入到redis中。implements一下Serializable接口即可!

@Cacheable不起作用的原因:bean未序列化


相关文章:

  • 2021-08-05
  • 2021-10-11
  • 2021-08-09
  • 2021-06-26
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案