【问题标题】:Spring Retry is not allowing to stop the TC server NormallySpring Retry 不允许正常停止 TC 服务器
【发布时间】:2015-08-10 12:32:10
【问题描述】:

我正在使用 spring 重试模板,当有重试进程正在运行时,我无法停止服务器。如果我试图停止服务器,它是说 tc 服务器没有响应,你想终止服务器吗?

我按照下面的方式,但不幸的是同样的结果。

How can I shutdown Spring task executor/scheduler pools before all other beans in the web app are destroyed?

提前致谢

【问题讨论】:

    标签: java spring spring-retry


    【解决方案1】:

    您需要调用shutdownNow() 来中断所有等待(可中断)的线程。

    【讨论】:

      猜你喜欢
      • 2020-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-07
      • 1970-01-01
      • 1970-01-01
      • 2011-01-13
      • 1970-01-01
      相关资源
      最近更新 更多