File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -596,16 +596,16 @@ in a similar manner as the `ConnectionSettings` example above.
596596
597597
598598[[boot-features-external-config-relaxed-binding]]
599- ==== Relaxed binding (Properties format)
599+ ==== Relaxed binding
600600Spring Boot uses some relaxed rules for binding `Environment` properties to
601601`@ConfigurationProperties` beans, so there doesn't need to be an exact match between
602602the `Environment` property name and the bean property name. Common examples where this
603603is useful include underscore separated (e.g. `context_path` binds to `contextPath`), and
604604capitalized (e.g. `PORT` binds to `port`) environment properties.
605605
606- NOTE: Environment variables are usually underscore-separated and upper case so you can
607- just use that and Spring Boot will bind it to your bean property names accordingly. For
608- instance `MY_PROPERTY` will match just the same as `myProperty`, `my_property` or
606+ NOTE: Environment variables are usually underscore-separated and upper case. You can
607+ use that format and Spring Boot will bind them to your bean property names accordingly.
608+ For instance `MY_PROPERTY` will match just the same as `myProperty`, `my_property` or
609609`my-property`.
610610
611611Spring will attempt to coerce the external application properties to the right type when
You can’t perform that action at this time.
0 commit comments