Is it possible to use multiple ehcache.xml (in different projects, same war)?

后端 未结 3 1495
隐瞒了意图╮
隐瞒了意图╮ 2020-12-18 19:34

I have a services project and a web project. I need to have eh-cache in both projects.

The idea is that if the service project is updated, it\'s cache-related change

3条回答
  •  伪装坚强ぢ
    2020-12-18 19:56

    The configurationResourceName property is used to specify the location of the ehcache configuration file.The resource is searched for in the root of the classpath. It is used to support multiple CacheManagers in the same VM.

    net.sf.ehcache.configurationResourceName=/name_of_ehcache.xml
    

提交回复
热议问题