Spring boot Spring云配置:未解释Spring.cloud.config.name

Spring boot Spring云配置:未解释Spring.cloud.config.name,spring-boot,spring-cloud-config,Spring Boot,Spring Cloud Config,我需要通过云配置服务器访问配置。我需要访问几个文件夹。第一个链接到应用程序,第二个是文件夹,其中包含同一环境中所有应用程序使用的公共属性 Spring boot的版本是2.4.3。 我尝试在application.yml中使用spring.cloud.config.name属性,因为自spring引导版本2.4.X以来,文件引导已被弃用 My application.yml: spring: application: name: asset-descriptive-service

我需要通过云配置服务器访问配置。我需要访问几个文件夹。第一个链接到应用程序,第二个是文件夹,其中包含同一环境中所有应用程序使用的公共属性

Spring boot的版本是2.4.3。 我尝试在application.yml中使用spring.cloud.config.name属性,因为自spring引导版本2.4.X以来,文件引导已被弃用

My application.yml:

spring:
  application:
    name: asset-descriptive-service
  config:
    import: configserver:http://mycloudconfig.dev.int
  cloud:
    config:
      name: my-service,intfwk
      label: mybranch
      username: gitUser
      password: gitpassword
      token: vault_token
      fail-fast: true
这是我的日志,只考虑spring.application.name

2021-05-27 16:12:05.176  INFO 35696 --- [           main] a.AssetServiceApplication : Starting AssetServiceApplication using Java 1.8.0_252 on localhost with PID 35696 (D:\development\asset-descriptive-service\asset-descriptive-service-application\target\classes started by user in D:\development\asset-descriptive-service)
2021-05-27 16:12:05.179  INFO 35696 --- [           main] a.AssetServiceApplication : The following profiles are active: local
2021-05-27 16:12:05.230  INFO 35696 --- [           main] o.s.b.context.config.ConfigDataLoader    : Fetching config from server at : http://mycloudconfig.dev.int
2021-05-27 16:12:05.230  INFO 35696 --- [           main] o.s.b.context.config.ConfigDataLoader    : Located environment: name=asset-descriptive-service, profiles=[default], label=mybranch, version=null, state=null

你已经面对这个问题了吗

谢谢你的帮助