SpringBoot项目启动报错8080端口被占用
springboot项目在启动时显示项目启动失败,8080端口被占用解决方法
一、报错提示
The Tomcat connector configured to listen on port 8080 failed to start.
二、解决方法
1.打开cmd
输入netstat -ano|findstr 8080,查看8080端口被占用进程
(示例):
杀死这些进程
输入
taskkill /f /t /im 6036
其他进程如上重复
问题解决
或者在springboot配置文件application.properties中写入
server.port=xxxx(x为想要写入的端口数字)
就可以改变服务启动端口号