1

spring boot管理サーバーに同じアプリケーション(ポートだけ違う)のインスタンスを2つ登録したいと考えています。しかし、Spring Boot 管理パネルには 1 つのインスタンス (MyApp インスタンス 2) しか表示されません。私の設定で何が問題になっていますか?

基本情報:

  • Spring Boot 管理クライアント - 2.0.0-SNAPSHOT
  • Spring Boot 管理サーバー - 2.0.0-SNAPSHOT
  • Spring Boot バージョン (両方) - 2.0.1.RELEASE

私のapplication.ymlファイル:

spring:
  boot:
    admin:
      client:
        url: http://example.org:7474/admin/
        instance:
          name: 'MyApp instance 1'
          service-url: http://example.org:7474/MyApp/
          service-base-url: http://example.org:7474/
          metadata:
            user.name: myuser
            user.password: mypassword
        instance:
          name: 'MyApp instance 2'
          service-url: http://example.org:27474/MyApp/
          service-base-url: http://example.org:27474/
          metadata:
            user.name: myuser
            user.password: mypassword
management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: ALWAYS
4

1 に答える 1