设置SpringBoot客户端时无法绑定“ spring.boot.admin.client”下的属性

时间:2019-10-31 10:24:08

标签: spring-boot spring-initializr

我想将Spring Boot应用程序注册为客户端。

我在bootstrap.yml文件中有这个

spring:
  boot:
    admin:
      client:
        url=http://bendiciones.buenas.noches:8080

但是当我启动应用程序时出现此错误:

Failed to bind properties under 'spring.boot.admin.client' to de.codecentric.boot.admin.client.config.ClientProperties:

      Property: spring.boot.admin.client
    Value: url=http://bendiciones.buenas.noches:8080
    Origin: URL [file:src/main/resources/bootstrap.yml]:13:9
    Reason: No converter found capable of converting from type [java.lang.String] to type [de.codecentric.boot.admin.client.config.ClientProperties]

0 个答案:

没有答案