Skip to content

Commit 6e2fbfe

Browse files
committed
Polishing contribution
Closes gh-35232
1 parent 968e037 commit 6e2fbfe

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

framework-docs/modules/ROOT/pages/web/webflux/controller/ann-requestmapping.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,13 @@ Kotlin::
234234
======
235235
--
236236

237-
URI path patterns can also have embedded `${...}` placeholders that are resolved on startup
238-
by using `PropertySourcesPlaceholderConfigurer` against local, system, environment, and
239-
other property sources. You can use this, for example, to parameterize a base URL based on
240-
some external configuration. SpEL expression `#{...}` is also supported in URI path pattern by default.
237+
URI path patterns can also have:
238+
239+
- Embedded `${...}` placeholders that are resolved on startup via
240+
`PropertySourcesPlaceholderConfigurer` against local, system, environment, and
241+
other property sources. This is useful, for example, to parameterize a base URL based on
242+
external configuration.
243+
- SpEL expressions `#{...}`.
241244

242245
NOTE: Spring WebFlux uses `PathPattern` and the `PathPatternParser` for URI path matching support.
243246
Both classes are located in `spring-web` and are expressly designed for use with HTTP URL

framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,13 @@ Kotlin::
217217
----
218218
======
219219

220-
URI path patterns can also have embedded `${...}` placeholders that are resolved on startup
221-
by using `PropertySourcesPlaceholderConfigurer` against local, system, environment, and
222-
other property sources. You can use this, for example, to parameterize a base URL based on
223-
some external configuration. SpEL expression `#{...}` is also supported in URI path pattern by default.
220+
URI path patterns can also have:
221+
222+
- Embedded `${...}` placeholders that are resolved on startup via
223+
`PropertySourcesPlaceholderConfigurer` against local, system, environment, and
224+
other property sources. This is useful, for example, to parameterize a base URL based on
225+
external configuration.
226+
- SpEL expression `#{...}`.
224227

225228

226229
[[mvc-ann-requestmapping-pattern-comparison]]

spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@
105105

106106
/**
107107
* The path mapping URIs — for example, {@code "/profile"}.
108-
* <p>Ant-style path patterns are also supported (for example, {@code "/profile/**"}).
109-
* At the method level, relative paths (for example, {@code "edit"}) are supported
108+
* <p>Ant-style path patterns are also supported, e.g. {@code "/profile/**"}.
109+
* At the method level, relative paths, e.g., {@code "edit"} are supported
110110
* within the primary mapping expressed at the type level.
111-
* Path mapping URIs may contain placeholders (for example, <code>"/${profile_path}"</code>).
112-
* By default, SpEL expression is also supported (for example {@code "/profile/#{@bean.property}"}).
111+
* Path mapping URIs may contain property placeholders, e.g. <code>"/${profile_path}"</code>,
112+
* and SpEL expressions, e.g. {@code "/profile/#{@bean.property}"}.
113113
* <p><b>Supported at the type level as well as at the method level!</b>
114114
* When used at the type level, all method-level mappings inherit
115115
* this primary mapping, narrowing it for a specific handler method.

0 commit comments

Comments
 (0)