永发信息网

Quartz如何取消检查更新

答案:6  悬赏:0  手机版
解决时间 2021-11-21 19:41
  • 提问者网友:半生酒醒
  • 2021-11-21 01:03
Quartz如何取消检查更新
最佳答案
  • 五星知识达人网友:一把行者刀
  • 2021-11-21 01:22
Quartz contains an "update check" feature that connects to a server to check
if there is a new version of Quartz
available for download. This check runs asynchronously and does not affect
startup/initialization time of Quartz, and it fails gracefully if the
connection cannot be made. If the check runs, and an update is found, it will
be reported as available in Quartz's logs.

You can disable the update check with the Quartz config property
"org.quartz.scheduler.skipUpdateCheck: true" or
the system property "org.terracotta.quartz.skipUpdateCheck=true" (which you can
set in your system environment or as a -D on the java command line). It is
recommended that you disable the update check for production deployments.
全部回答
  • 1楼网友:持酒劝斜阳
  • 2021-11-21 07:39
更新失败,只需在applicationContext_quartz.xml其配置文件中设置下就可以了。






















true











  • 2楼网友:旧脸谱
  • 2021-11-21 07:17

在tomcat/bin  目录下的catalina.sh下加入

JAVA_OPTS="$JAVA_OPTS -Dorg.terracotta.quartz.skipUpdateCheck=true"

这玩意好坑,我的centos服务器估计主机名配置不对,这个quartz检查更新直接导致启动时JVM崩溃:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)

j  java.net.Inet6AddressImpl.lookupAllHostAddr(Ljava/lang/String;)[Ljava/net/InetAddress;+0

...

...

j  org.quartz.utils.UpdateChecker.run()V+1

j  java.util.TimerThread.mainLoop()V+221

j  java.util.TimerThread.run()V+1

v  ~StubRoutines::call_stub

  • 3楼网友:醉吻情书
  • 2021-11-21 05:48
快三年了, 没人回答你,我是来同求的。
  • 4楼网友:玩家
  • 2021-11-21 04:19
快三年了居然没人回答? 我也同求啊...真是个大坑
  • 5楼网友:雾月
  • 2021-11-21 02:54
一直没有结果么? 好吧 我来填坑









true




或者启动参数
-Dorg.terracotta.quartz.skipUpdateCheck=true

或者启动的类中添加
System.setProperty("org.terracotta.quartz.skipUpdateCheck","true");

如果这个管用了 点个给力 省的别人总去看那个没用的网友采纳
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯