执行spring-boot程序是报错

错误过程:
***************************

APPLICATION FAILED TO START

***************************

Description:

The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
问题:
The Tomcat connector configured to listen on port 1804 failed to start.
 The port may already be in use or the connector may be misconfigured.

在这里插入图片描述

解决方案:

1、在Windows系统中,进入cmd。输入【netstat -ano】

在这里插入图片描述
找到如下所示的端口所包含的进程。

在这里插入图片描述
2、输入【tasklist | findstr “10056”】找到该进程【10056】所对应的程序。

在这里插入图片描述

3、输入【taskkill /f /t /im javaw.exe】,杀死该进程

在这里插入图片描述

结束:问题已经解决,重新运行项目就可以了

GitHub 加速计划 / sp / spring-boot
73.97 K
40.4 K
下载
spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
最近提交(Master分支:8 天前 )
d3a2bf40 * pr/42289: Add common definition annotations support for ConfigurationProperties Closes gh-42289 3 天前
44be2e11 Update `` to ensure that common bean definition annotations, such as `@Lazy`, `@Primary` and `@Fallback`, are applied. See gh-42289 3 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐