Spring Boot——[Disconnected from the target VM, address: IP:端口, transport: 'socket']解決方案

問題描述

 

問題分析

1.tomcat出問題了,更換本地的tomcat

2.maven出問題了,更換maven

3.tomcat和maven可能同時出問題,這個當然需要都更換一下了

4.項目中jdk的編譯版本與引用不一致

 

解決方案

1、使用Spring Boot內置Tomcat 

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </dependency>

 或者 

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-web</artifactId>
</dependency>

 2、檢查項目設置

 

參考文章

https://blog.csdn.net/xu12387/article/details/87777153

https://blog.csdn.net/weixin_43850509/article/details/100943657

https://blog.csdn.net/qq_33481146/article/details/86235721

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章