DisconnectedfromthetargetVM,address:127.0.0.1。。。Disconnected from the target VM, address: '127.0.0.1:56577', transport: 'socket'
Disconnected from the target VM=与⽬标虚拟机断开连接。
PS:通俗点讲就是:你的端⼝已经被其他程序占⽤,⽆法连接⽬标虚拟机。
在cmd中输⼊命令:netstat -ano,查看所有端⼝的占⽤情况
去任务管理器中查PID为10652
IDEA 与 Maven 的版本不兼容造成的
启动运⾏时:
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>thyme
</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'
就没有报错了,完美解决!

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。