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");
精彩评论