运行springboot的项目,执行java -jar xxx.jar命令后,报8080端口在使用,通过如下方式关掉使用的8080端口。

  1. netstat -ano | findstr "8080"
    某端口被占用的解决方法

  2. tasklist | findstr "3364"
    某端口被占用的解决方法

  3. taskkill /f/t/im javaw.exe
    某端口被占用的解决方法

如果想更改springboot的tomcat的启动端口号,在application.properties中设置server.port=自定义的端口号

参考链接:
解决问题 The Tomcat connector configured to listen on port 8080 failed to start.

相关文章:

  • 2021-11-11
  • 2021-08-18
  • 2021-11-25
  • 2021-09-02
  • 2022-01-09
  • 2022-12-23
猜你喜欢
  • 2022-02-24
  • 2021-05-04
  • 2021-08-27
  • 2021-07-08
相关资源
相似解决方案