天天看點

springboot項目在Eclipse/Myeclipse中Debug啟動跳轉至斷點(exitCurrentThread)

Spring Boot項目使用了spring-boot-devtools工具且在Eclipse中Debug調試會自動跳轉到這個方法:

public static void exitCurrentThread() {
    throw new SilentEitException();
}      

解決方法:

Eclipse->【Window】->【Preferences】->【Java】->【Debug】:去掉【Suspend execution on uncaught exceptions】前面的勾。

springboot項目在Eclipse/Myeclipse中Debug啟動跳轉至斷點(exitCurrentThread)