문제

We are trying to debug some issues with EhCache and we are unsure what configuration is being used. Is there a way to export or advice on debugging an EhCache configuration?

도움이 되었습니까?

해결책

You can output the full Ehcache configuration using a little bit of Java code. Just get a reference to your active cache manager by name. (The name should be in your ehcache.xml)

CacheManager mgr = CacheManager.getCacheManager("my-cache-manager");
System.out.println(mgr.getActiveConfigurationText());

This will output the current configuration to the log/console.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top