开发者

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

开发者 https://www.devze.com 2022-12-23 19:21 出处:网络
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\"

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

精彩评论

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