net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:

系统会创建cacheManager ,但是没有beanID,无法用注入方式获取chacheManager,用 ehcache.xml放入src根文件夹下,可自己主动创建cache,
假设在随意文件夹,可在web.xml下加入listener用文件创建cacheManage的方式创建cache


例如以下配置shiro的缓存时用到了EhCacheCacheManager,由于系统仅仅能创建一个EhCacheCacheManager

所以要让自己的和系统的创建方式来自同一个地方。即使用在classpath路径下通过ehcache.xml配置。

然后让自己和系统的都指向它就能够了,文件名称必须是ehcache.xml

<bean ></bean>

     cacheManager载入问题

相关文章:

  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
猜你喜欢
  • 2021-04-24
  • 2021-07-19
  • 2022-12-23
  • 2022-02-10
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案