How to use application.propeties in spring cloud config client application?

222 views Asked by At

How to use application.yml in spring cloud config client application?

spring:
  application:
    name: app-cli
  profiles:
    active: DEV
  config:
    import: "configserver:"
  cloud:
    config:
      name: ${spring.application.name}
      uri: http://192.168.0.12:8888
      username: thirumal 
      password: thirumal 
      request-read-timeout: 200
      request-connect-timeout: 100
      fail-fast: true

The client app is configure with all the required properties, still it's not connecting to config-server.

The lib implementation 'org.springframework.cloud:spring-cloud-starter-config'

0

There are 0 answers