gpt4 book ai didi

ehcache - 如何以编程方式禁用 Ehcache 的更新检查?

转载 作者:行者123 更新时间:2023-12-02 21:10:48 29 4
gpt4 key购买 nike

我知道属性“updateCheck”可以在 XML 中设置为“false”,如下所示:

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

但我需要以编程方式执行此操作。我该怎么做?

最佳答案

在使用任何 ehcache 函数之前调用此函数:

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

关于ehcache - 如何以编程方式禁用 Ehcache 的更新检查?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2506925/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com