springboot启动不成功Disconnected from the target VM, address: '127.0.0.1:4264', transport: 'socket'

控制台如下:

这是因为pom.xml缺少web包,加入就可以啦!

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

我们看下spring-boot-starter-web里面

没错啦,就是缺少tomcat包! 

猜你喜欢

转载自blog.csdn.net/xu12387/article/details/87777153