Another unnamed CacheManager already exists in the same VM (ehCache 2.5)

前端 未结 17 1972
囚心锁ツ
囚心锁ツ 2020-11-30 20:41

This is what happens when I run my junit tests...

Another CacheManager with same name \'cacheManager\' already exists in the same VM. Please 
provide unique          


        
17条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 21:07

    I solved it by adding following to resources.groovy :

    beans = { ... aclCacheManager(EhCacheManagerFactoryBean) { shared = true } ... }

提交回复
热议问题