问题描述:Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.

或者:The Tomcat connector configured to listen on port 7001 failed to start. The port may already be in use or the connector may be misconfigured.

problems

解决方法:这类问题在springboot中经常出现,凡是类似的问题一般都是端口被占用了,找出占用端口的PID然后结束进程即可

  1. 打开cmd命令窗口 输入如下指令查看所有端口和PID
netstat -ano
  1. 可以直接输入要查找的端口号进行查找:
netstat -aon|findstr 7001

在这里插cmd入图片描述
3. 找到对应的端口对应的PID 输入指令找到对应的进程

 tasklist | findstr "2816"

find
4. 杀掉该进程 再次启动就OK啦

  taskkill /f /t /im java.exe 

kill

Logo

脑启社区是一个专注类脑智能领域的开发者社区。欢迎加入社区,共建类脑智能生态。社区为开发者提供了丰富的开源类脑工具软件、类脑算法模型及数据集、类脑知识库、类脑技术培训课程以及类脑应用案例等资源。

更多推荐