Send 404 if application not found (#960)

Send 404 if application not found and `spring.cloud.config.server.accept-emtpy=true`

Fixes gh-155
This commit is contained in:
Chidambaram Sundaram
2018-04-11 07:11:09 +05:30
committed by Spencer Gibb
parent e049cfd818
commit c70bca5149
7 changed files with 117 additions and 19 deletions

View File

@@ -105,6 +105,7 @@ If there are profile-specific YAML (or properties) files, these are also applied
Higher precedence translates to a `PropertySource` listed earlier in the `Environment`.
(These same rules apply in a standalone Spring Boot application.)
You can set spring.cloud.config.server.accept-empty to false so that Server would return a HTTP 404 status, if the application is not found.By default, this flag is set to true.
==== Git Backend
The default implementation of `EnvironmentRepository` uses a Git backend, which is very convenient for managing upgrades and physical