java - Spring Cloud Config Server - properties not being returned -


this question related post. approach seemed work earlier today seeing below response instead of seeing properties defined properties file -

{ "name": "order-service" "profiles": [1] 0:  "dev-v1" - "label": null "version": "0299eae906ee10555b68bd1bfe36bd390728969e" "propertysources": [0] } 

i see empty propertysources.

below defined in application.yml

spring:   cloud:     config:       server:         git:           uri: https://github.companyname.com/projectname/orderservice-properties           username: ordersvc           password: ordersvc           search-paths: order-service,v* 

the github url has 2 folders v1 , v2 have file order-service-dev.properties.

please can let me know missing? thanks.

edit

i changed application.yml below:

spring:   cloud:     config:       server:         git:           uri: https://github.companyname.com/projectname/orderservice-properties           username: ordersvc           password: ordersvc           search-paths: order-service/v* 

now see below when using endpoint http://localhost:8080/order-service/dev. how can see specific endpoint's data (say v1 or v2)?

{ "name": "order-service" "profiles": [1] 0:  "dev" - "label": null "version": "693378d4145cca50e38d5b9e39afbe1a3b334c6c" "propertysources": [2] 0:  { "name": "https://github.companyname.com/projectname/orderservice-properties/order-service/v2/order-service-dev.properties" "source": { "key3": "value3" "key2": "value2" "key1": "value1" }- }- 1:  { "name": "https://github.companyname.com/projectname/orderservice-properties/order-service/v1/order-service-dev.properties" "source": { "key3": "value3" "key2": "value2" "key1": "value1" } }     } 


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo