Eclipse_跳轉到exitCurrentThread

Eclipse_跳轉到exitCurrentThread

背景: 
在使用Eclipse時,用Debug模式運行springboot項目,結果老是在項目快啓動成功的時候,跳轉到exitCurrentException這個地方。
spring

1. 問題重現 
跳轉的位置 
  
2. 解決方案 
Eclipse->【Preferences】->【Java】->【Debug】:去掉【Suspend execution on uncaught exceptions】前面的勾。 
  
解決方案 
  
3.原理思路 
 由於Spring Boot項目使用了spring-boot-devtools工具且在Eclipse中Debug調試會自動跳轉到這個方法。而Suspend execution on uncaught exceptions的中文意思是暫停執行在發生未捕獲的異常時,咱們將這個選項去掉打勾,便不會暫停,就相似於咱們使用Run運行通常。
springboot

相關文章
相關標籤/搜索