idea配置spring框架tomcat端口号,The Tomcat connector configured to listen on port xxxx failed to start.解决方案!

***************************
APPLICATION FAILED TO START
***************************

Description:

The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 80, or configure this application to listen on another port.

端口被占用了,解决方案:1、杀掉占用进程 2、更换端口

1、杀掉占用进程,参考:

https://blog.csdn.net/q343509740/article/details/80821409

2:、更换端口

 

 

这是idea启动项目时,重写了spring.tomcat的参数,还有一种方法,在配置文件中重写:

找到任意*.yml文件,写入server.port=8888,ide会自动格式化

 

©️2020 CSDN 皮肤主题: 像素格子 设计师:CSDN官方博客 返回首页