Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我捕获了 RejectedExecutionException 并正确处理它。但是,我想知道当服务器/jvm突然崩溃时我应该如何捕捉和处理这种情况。有人可以帮我吗?
我无法处理这种情况,因为 JVM 本身崩溃了,你不能指望你的任何代码在这段时间内正常运行。