天天看點

Disconnected from the target VM, address: '127.0.0.1:25641', transport: 'socket'

今天遇到一個怪事,就是将原本在eclipse項目轉成idea運作。maven工程來的。

起初運作一直卡在這,無法進入SpringBoot啟動的界面

[INFO ] 2019-02-20 15:14:06:392 org.springframework.context.annotation.AnnotationConfigApplicationContext (Jdk14Logger.java:87) - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@4961f6af: startup date [Wed Feb 20 15:14:06 CST 2019]; root of context hierarchy
[INFO ] 2019-02-20 15:14:06:830 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor (Jdk14Logger.java:87) - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[INFO ] 2019-02-20 15:14:06:900 org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker (Jdk14Logger.java:87) - Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$85fb7795] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
           

後來,通過debug模式,發現了

Disconnected from the target VM, address: '127.0.0.1:25641', transport: 'socket'
           

通過百度,看到有很多種解決方法,但是每種解決方法都不一樣

說是測試類大小寫的問題,點選

說是maven與idea版本相容的問題,點選

說是xml掃描的問題,點選

等等,一大堆不一樣的解決方法,真不知道哪些管用,最後使用了最後一種解決方法,先把掃描xml路徑給注釋了,能進入Springboot的啟動界面了,但是還會存在問題

Disconnected from the target VM, address: '127.0.0.1:25641', transport: 'socket'

繼續修改。。。

清除編譯,重新開機IDEA

**PS:**

1、歡迎通路我的個人站點:小白求學進階

2、微信公衆号:

繼續閱讀