Open githubyong opened 6 years ago
I cloned repo to my local and config application.yml as: server: port: 8888 spring: cloud: config: server: native: search-locations: D:/test/spring-cloud-config-repo/ profiles: active: native but some url pattern doesn't work,test result like this: "http://localhost:8888/foo-db.properties" √ "http://localhost:8888/foo-development.properties" √ "http://localhost:8888/foo.properties" (type=Not Found, status=404). "http://localhost:8888/test.json" (type=Not Found, status=404). "http://localhost:8888/books.xml" (type=Not Found, status=404). and than i copyed books.xml to books-dev.xml but the "http://localhost:8888/books-dev.xml" return "(type=Not Found, status=404)" too.
server: port: 8888 spring: cloud: config: server: native: search-locations: D:/test/spring-cloud-config-repo/ profiles: active: native
I got it in spring Documentation ,use path as /{name}/{profile}/{label}/{path}
I cloned repo to my local and config application.yml as:
server: port: 8888 spring: cloud: config: server: native: search-locations: D:/test/spring-cloud-config-repo/ profiles: active: native
but some url pattern doesn't work,test result like this: "http://localhost:8888/foo-db.properties" √ "http://localhost:8888/foo-development.properties" √ "http://localhost:8888/foo.properties" (type=Not Found, status=404). "http://localhost:8888/test.json" (type=Not Found, status=404). "http://localhost:8888/books.xml" (type=Not Found, status=404). and than i copyed books.xml to books-dev.xml but the "http://localhost:8888/books-dev.xml" return "(type=Not Found, status=404)" too.