开发者

How do I programmatically disable the update checks for an Ehcache?

I know that the attribute "updateCheck" can be set in "false" in the XMLlike this:

xmlns:xsi="开发者_C百科http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd" updateCheck="false" monitoring="autodetect">

But I need to do this programmatically. How should I do it?


Call this before you use any ehcache functions:

System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜