spring-cloud-samples / config-repo

Configuration files for the server sample
138 stars 889 forks source link

native repo 404 #20

Open githubyong opened 6 years ago

githubyong commented 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.

githubyong commented 6 years ago

I got it in spring Documentation ,use path as /{name}/{profile}/{label}/{path}