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

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

Disconnected from the target VM=與目標虛擬機斷開鏈接。maven

PS:通俗點講就是:你的端口已經被其餘程序佔用,沒法鏈接目標虛擬機。ide

在cmd中輸入命令:netstat -ano,查看全部端口的佔用狀況idea

去任務管理器中查找PID爲10652spa

IDEA 與 Maven 的版本不兼容形成的code

 

啓動運行時:blog

Connected to the target VM, address: '127.0.0.1:56577', transport: 'socket'

maven配置是:模板引擎

<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>3.0.11.RELEASE</version>
</dependency>


而我用的是idea2019.1佔用了端口

因此改一下版本
<!--模板引擎thymeleaf-->
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>2.1.4</version>
</dependency>

啓動運行時端口就改了
Connected to the target VM, address: '127.0.0.1:60206', transport: 'socket'

就沒有報錯了,完美解決!get

相關文章
相關標籤/搜索