EHCache禁用 [英] EHCache Disable
本文介绍了EHCache禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用属性文件从外部禁用ehache? CacheManager.shutdown()似乎不起作用?实际上,我们有2个具有相同源代码的应用程序,而我需要ehcache而不是另一个。我不需要缓存的一个webapp!
Is there a way to disable ehache externally using a property file? CacheManager.shutdown() doesnt seem to work? Actually we have 2 app with the same source code i require ehcache in one and not the other. one where i dont need cache is a webapp! Unable to figure to out yet how to go about this?
推荐答案
有一个系统属性可用于此目的:
There is a system property you can use for this:
net.sf.ehcache.disabled=true
这篇关于EHCache禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文