解决方案:   开发过程中如果想缓存某个JavaBean,请确保它所引用的对象都implents Serializable,如果某个对象不需要被cache,可以加上transient关键字,否则Ehcache每次都通过引用查找的方法去保存所有实例数据到磁盘.最终会失败使用缓存时出现java.io.NotSerializableException:xxx.xxx.xxx.Bean解决办法

 

相关文章:

  • 2022-12-23
  • 2021-08-31
  • 2021-10-20
  • 2021-10-28
  • 2021-08-06
  • 2021-10-27
  • 2022-12-23
  • 2021-06-07
猜你喜欢
  • 2021-10-27
  • 2021-07-27
相关资源
相似解决方案