以debug方式启动springboot之后,都会在SilentExitExceptionHandler类中的throw new SilentExitException()处终止,虽然不影响程序运行,但始终感觉不爽。如图:

解决办法 :window->preferences ->java->debug 取消“suspend execution on uncaught exceptions”选项即可。

解决办法 :window->preferences ->java->debug 取消“suspend execution on uncaught exceptions”选项即可。


本文介绍了解决在以debug模式启动SpringBoot应用时,在SilentExitExceptionHandler类中的thrownewSilentExitException()处异常挂起的问题。通过简单的配置调整,取消Java调试设置中的'suspend execution on uncaught exceptions'选项,可以避免这一现象。
3607

被折叠的 条评论
为什么被折叠?



