Repository navigation
Allow disabling the default environment repository - #3365
ryanjbaxter merged 3 commits into
Conversation
Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
|
Can we add documentation for the property and when it is useful to use? Also the documentation should call out the behavior the user will see when the property is |
Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
|
Thanks for the review! i have added documentation for the new |
|
|
||
| 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`. | ||
|
|
||
| == Disabling the Default Environment Repository |
There was a problem hiding this comment.
I think this should go in embedding.adoc
Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
|
Thanks for the suggestion! I have moved the documentation to |
Summary
Closes #1431.
Allow the default environment repository to be disabled through configuration when embedding Spring Cloud Config Server in an application.
Previously, when no
EnvironmentRepositorywas explicitly configured, the default Git repository was created and required a Git URI, even when loading external configuration was not desired.This change introduces the following configuration property:
When set to
false, the default Git environment repository is not created. The property defaults totruewhen absent to preserve existing behavior.Testing
EnvironmentRepositoryConfigurationTestspasses.