1、Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port.

如下图

字面意思(机器翻译):

识别并停止监听端口8080的进程,或将此应用程序配置为监听另一个端口。

大致意思是我们要使用的端口已被占用

方法一:关闭进程

打开cmd 输入命令

netstat 8080

的确是已被占用

继续输入cmd命令 查看占用端口的进程号

netstat -ano | findstr 8080

从图中红圈可以看出 进程为 8456

使用cmd命令将此进程终止

taskkill /F /PID 8456

重新启动springboot应用

成功启动

方法二:修改springboot配置

在springboot资源目录 resources下创建application.propertis文件

输入如下(不一定要8000端口,只要是空闲的端口都可

server.port= 8000

这样springboot tomcat将会使用8000端口 从而不会造成端口冲突

重新启动springboot

更多推荐

Identify and stop the process that’s listening on port 8080 or configure this ap