Skip to content

Commit 2b4eee5

Browse files
committed
Add a note explaining that double backslashes are unnecessary in YAML
Closes gh-1989
1 parent cc55783 commit 2b4eee5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,10 @@ to `application.properties`, e.g.
496496
server.tomcat.internal_proxies=192\\.168\\.\\d{1,3}\\.\\d{1,3}
497497
----
498498

499+
NOTE: The double backslashes are only required when you're using a properties file for
500+
configuration. If you are using YAML, single backslashes are sufficient and a value
501+
that's equivalent to the one shown above would be `192\.168\.\d{1,3}\.\d{1,3}`.
502+
499503
Alternatively, you can take complete control of the configuration of the `RemoteIpValve`
500504
by configuring and adding it in a `TomcatEmbeddedServletContainerFactory` bean.
501505

0 commit comments

Comments
 (0)