SpringBoot启动报错 Disconnected from the target VM, address: '127.0.0.1:2227', transport: 'socket'

今天搭建了一个SpringBoot项目,刚启动就报错 Disconnected from the target VM, address: '127.0.0.1:2227', transport: 'socket'

百度一下,有人说端口占用,有人说Mavenban不兼容,我测试一下以前的项目可以正常运行,断定不是这些问题!仔细检查,原来是pom.xml文件出了问题!

如图:

修改之后:

 正常启动!

猜你喜欢

转载自www.cnblogs.com/shenlailai/p/10462753.html