Netflix Eureka和Spring Boot Admin在一个应用程序中,未显示客户端

时间:2019-06-10 08:44:29

标签: netflix-eureka spring-boot-admin

我正在尝试将Spring Boot Admin添加到我的Eureka Server中,但是看起来某处出了点问题。

我正在使用

@SpringBootApplication
@EnableAdminServer
@EnableEurekaServer 

我的主班用

注释
spring:
  application:
    name: eureka-server
  boot:
    admin:
      context-path: /admin

security:
  basic:
    enabled: false

management:
  security:
    enabled: false

eureka:
  client:
    register-with-eureka: false
    fetch-registry: true
  instance:
    leaseRenewalIntervalInSeconds: 15

这是application.yml

eureka:
  instance:
    leaseRenewalIntervalInSeconds: 10
    leaseExpirationDurationInSeconds: 5
  client:
    service-url:
      default-zone: http://localhost:8761/eureka
    healthcheck:
      enabled: true
    lease:
      duration: 5
management:
  endpoints:
    web:
      exposure:
        include: '*'
  security:
    enabled: false

启动服务器后,我尝试启动微服务

application.yaml转到客户端的内容如下:

<ion-content padding>
    <ion-slides [options]="slideOpts">
      <ion-slide>
        <h1>Slide 1</h1>
      </ion-slide>
      <ion-slide>
        <h1>Slide 2</h1>
      </ion-slide>
      <ion-slide>
        <h1>Slide 3</h1>
      </ion-slide>
    </ion-slides>
</ion-content>

但是我在尤里卡认为它很沮丧

,我在SBA中看不到任何内容 enter image description here

0 个答案:

没有答案