2.解决方案

显示的是没有找到这个缓存空间,出现该问题其实还是配置文件的事情,在ehcache的配置文件中,需要配置缓存空间。
这里的name就是你的缓存空间的名称,要与你@Cacheable中的value一致

 

使用教程必读 EA82.COM
<!-- 这里的 user 缓存空间是为了下面的 demo 做准备 -->
    <cache
            name="user"
            eternal="false"
            maxElementsInMemory="100"
            overflowToDisk="false"
            diskPersistent="false"
            timeToIdleSeconds="0"
            timeToLiveSeconds="300"
            memoryStoreEvictionPolicy="LRU" />

 

相关文章:

  • 2021-09-12
  • 2022-01-17
  • 2022-12-23
  • 2021-08-11
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案