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

今天搭建了一个SpringBoot项目,刚启动就报错 Disconnected from the target VM, address: ‘127.0.0.1:61180’, transport: ‘socket’
SpringBoot启动报错 Disconnected from the target VM, address: '127.0.0.1:61180', transport: 'socket'
百度一下,有人说端口占用,有人说Mavenban不兼容,我测试一下以前的项目可以正常运行,断定不是这些问题!仔细检查,原来是pom.xml文件出了问题!
之前是spring-boot-starter,应该是spring-boot-starter-webSpringBoot启动报错 Disconnected from the target VM, address: '127.0.0.1:61180', transport: 'socket'
修改了之后就可以正常启动了。

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