启动网关报错
来源:6-1 通过网关Zuul实现路由功能
Zarathustra1816763
2021-02-09 23:24:38
我直接使用的课件提供的代码,但是启动失败了

报错信息
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 9000 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 9000, or configure this application to listen on another port.
Process finished with exit code 1
代码:
properties
spring.application.name=course-gateway
server.port=9000
logging.pattern.console=%clr(%d{${LOG_DATEFORMAT_PATTERN:HH:mm:ss.SSS}}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}
mybatis.configuration.map-underscore-to-camel-case=true
eureka.client.service-url.defaultZone=http://localhost:8000/eureka/
zuul.prefix=/imooc
zuul.routes.course-list.path=/list/**
zuul.routes.course-list.service-id=course-list
zuul.routes.course-price.path=/price/**
zuul.routes.course-price.service-id=course-price
应该都和课件一样的

1回答
好帮手慕小班
2021-02-10
同学你好,根据贴出的报错信息:
The Tomcat connector configured to listen on port 9000 failed to start. The port may already be in use or the connector may be misconfigured. ---被配置为侦听9000端口的Tomcat连接器启动失败。端口可能已经被使用,或者连接器可能配置错误。
猜测同学的9000端口已经被占用,同学尝试换一个端口试试。
祝学习愉快!
相似问题