小编vij*_*dey的帖子

Spring Cloud Config Client 无法与 Spring Boot 2.5.1 一起使用

Spring Cloud 配置客户端不适用于 Spring Boot 2.5.1,但适用于 2.5.0。

应用程序-dev.yml

spring:
  config:
    import: configserver:http://localhost:8270/
  cloud:
    config:
      enabled: true

Run Code Online (Sandbox Code Playgroud)

错误

***************************
APPLICATION FAILED TO START
***************************

Description:

Config data location 'configserver:http://localhost:8270/' does not exist

Action:

Check that the value 'configserver:http://localhost:8270/' at class path resource [application-dev.yml] - 3:13 is correct, or prefix it with 'optional:'


Run Code Online (Sandbox Code Playgroud)

pom.xml

***************************
APPLICATION FAILED TO START
***************************

Description:

Config data location 'configserver:http://localhost:8270/' does not exist

Action:

Check that the value 'configserver:http://localhost:8270/' at class path resource [application-dev.yml] - 3:13 is …
Run Code Online (Sandbox Code Playgroud)

spring-boot spring-cloud-config

5
推荐指数
1
解决办法
2852
查看次数

标签 统计

spring-boot ×1

spring-cloud-config ×1