【问题标题】:How to start single Spring Boot Microservice on Multiple Ports in STS/eclipse? [closed]如何在 STS/eclipse 的多个端口上启动单个 Spring Boot 微服务? [关闭]
【发布时间】:2018-07-16 06:59:18
【问题描述】:

如何在 STS/eclipse 的多个端口上启动单个 Spring Boot 微服务?

【问题讨论】:

标签: spring spring-boot microservices


【解决方案1】:

在多个端口上启动单个微服务。 步骤如下。

1. Right click on     project -> Run As.. -> Run Configuration.

2.创建新的启动应用程序配置。 在环境选项卡中添加“Server.port =9090”(** 使用您喜欢和可用的任何端口 :))。 应用并运行。 这将在同一端口上执行相同的微服务。 如需更多使用上述步骤 1 和 2。

Danke,
Rahul

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-01
    • 1970-01-01
    • 2020-11-25
    • 2019-10-23
    • 2023-03-29
    • 1970-01-01
    • 2021-11-22
    相关资源
    最近更新 更多