spring boot 2.2.2

server:
  port: 3700
  servlet:
    context-path: /config   #Here is the project root path
spring:
    cloud:
        config:........
-----------------------------------------------------------------
cloud: 
    config:
      discovery:
        service-id: springcloud-config  
        enabled: true  
      profile: dev 
      label: master 
      username: xia #bais 认证
      password: 123 #bais 认证

Can't get configuration ,Because there is a project root path / config

Comment From: spencergibb

the eureka metadata for config server must contain a configPath=/config metadata entry.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.