Springboot异常--Identify and stop the process that‘s listening on port 9090 or configure this applicat
刚开始入门Springboot运行一些入门案例时遇到的bug
下面是异常信息:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-10-19 09:22:12.836 ERROR 5368 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************Description:Web server failed to start. Port 9090 was already in use.Action:Identify and stop the process that's listening on port 9090 or configure this application to listen on another port.2021-10-19 09:22:12.838 INFO 5368 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
异常截图:
异常是因为我使用的端口9090被占用,是一个入门时很容易遇到的异常
Identify and stop the process that’s listening on port 9090 or configure this applicat
正经翻译:确定并停止正在端口9090上侦听的进程,或将此应用程序配置为在另一个端口上侦听。
人话:你9090端口被占用了,你要不杀掉,要不改个端口
解决办法:
- 我给Springboot的端口是9090,那现在我想要让它的端口不是9090,而是9091,或者说另一个项目占用了9090,需要我们把现在的项目改成9091,那么我们就可以在application.properties文件中修改server.port=9091
再运行你看他就变量了
在运行时也改成9091
- 杀掉这个端口
- netstat -ano
win+r打开运行,并输入cmd
输入netstat -ano
然后一回车!就出来巨多端口
然后你找到9090
记住对应的17832
- netstat -ano
输入taskkill /pid 17832 -f 杀掉端口
然后就杀掉了
- netstat -aon|findstr “9090”
直接输入netstat -aon|findstr "9090"并回车
输入taskkill /pid 17832 -f 杀掉端口
然后就杀掉了
Springboot异常--Identify and stop the process that‘s listening on port 9090 or configure this applicat相关推荐
- 端口号被占用:Identify and stop the process that‘s listening on port 10000 or configure this application...
解决方式!!! 1.看看是谁占用了我的端口号! 快捷键:win+R 输入:cmd 回车 然后命令窗输入: netstat -ano|findstr "10000" 2.关闭占用者进 ...
- 解决Identify and stop the process that‘s listening on port 8080 端口问题
这个就是端口被占用了,我的是因为package打包的时候终端了springboot项目然后直接退出终端没有强制关闭导致8080端口被占用: 解决方法是 打开cmd 输入命令 netstat 8080 ...
- Verify the connector‘s configuration, identify and stop any process that‘s listening on port 80, or
端口被占用 Verify the connector's configuration, identify and stop any process that's listening on port 8 ...
- Verify the connector‘s configuration, identify and stop any process that‘s listening on port 8911
Verify the connector's configuration, identify and stop any process that's listening on port 8911, o ...
- WIndows Web server failed to start. Port was already in use.Action:Identify and stop the process th
Description: Web server failed to start. Port 3001 was already in use. Action: Identify and stop the ...
- springcloud springboot 异常拦截器 项目完善03
springcloud springboot 异常拦截器 项目完善03 > 创建异常拦截器,在controller层没处理的异常抛出时,异常拦截器拦截后输入自定义的报错信息. 新建GlobalE ...
- spring Aop实现身份验证和springboot异常统一处理
文章有不当之处,欢迎指正,如果喜欢微信阅读,你也可以关注我的微信公众号:好好学java,获取优质学习资源. 一.spring Aop身份验证 一般,如果用户没有登录的话,用户只可以查看商品,但是其他的 ...
- springboot转发http请求_网易后端实习生分享:Springboot异常和错误处理规范
由于错误在所难免,异常处理已经成为开发工作中不可或缺的部分. 在web开发中,我们通常不希望用户看到一个写满StackTrace的错误页面:同时,我们希望出现错误或发生异常时,开发运维人员可以看到详细 ...
- springboot怎么返回404_深度分析:SpringBoot异常捕获与封装处理,看完你学会了吗?...
简介 日常开发过程中,难免有的程序会因为某些原因抛出异常,而这些异常一般都是利用try ,catch的方式处理异常或者throw,throws的方式抛出异常不管.这种方法对于程序员来说处理也比较麻烦, ...
- SpringBoot 异常回滚 事务的使用___Springboot @Transactional 事务不回滚
Springboot中事务的使用: 1.启动类加上@EnableTransactionManagement注解,开启事务支持(其实默认是开启的). 2.在使用事务的public(只有public支持事 ...
最新文章
- Ubuntu 12.10 拨号上网及停用方法
- 【机器学习】通俗的k-近邻算法算法解析和应用
- 石家庄地铁查询PSP0级
- boost::test模块测试树管理单元测试
- 【转】测试人员的思想理念和工作方法
- 池流程图_干货收藏 | Java程序员必备的一些流程图
- CSS详解(二)——CSS连接方式、CSS分裂与CSS分裂检测
- THINKPAD SL400 重装XP系统的经历
- Youtube视频码率,帧率,分辨率那些事
- linux磁盘坏道测试,Linux磁盘坏道检测
- iOS MOV转MP4
- 估值40亿美元后,完美日记的逆袭与成长新烦恼
- Oracle第十五章:视图
- 【MySQL】MySQL常用SQL关键字
- EBS 常用模块到XLA的关联字段追溯
- Linux部署war包项目
- 【笔记】LaTex参考文献bibtex的使用(RAA)
- msvcp120.dll一键修复工具,msvcp120.dll文件修复之后还会丢失吗?
- AWS CLI创建Amazon EKS服务
- 【Leetcode】115. Distinct Subsequences