From 75b2cd0cc8446b5705d051e8fe20081aa00cc614 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Mon, 17 Apr 2023 20:04:50 -0400 Subject: [PATCH] Add note about spring.main properties in remote repsitories Fixes #2248 --- docs/src/main/asciidoc/spring-cloud-config.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-config.adoc b/docs/src/main/asciidoc/spring-cloud-config.adoc index 3d98bd27..401848b4 100644 --- a/docs/src/main/asciidoc/spring-cloud-config.adoc +++ b/docs/src/main/asciidoc/spring-cloud-config.adoc @@ -104,7 +104,9 @@ 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. +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`. + +NOTE: You cannot place `spring.main.*` properties in a remote `EnvironmentRepository`. These properties are used as part of the application initialization. ==== Git Backend