You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+6-5
Original file line number
Diff line number
Diff line change
@@ -320,18 +320,19 @@ public void runLockedWithMyCustomLock() {
320
320
This is the default key generator the advice uses. If you wish to use your own, simply write your own and define it as a `@Bean`.
321
321
322
322
The default key generator has access to the currently executing context, meaning you can access your fields and methods from SpEL.
323
-
It uses the `https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/DefaultParameterNameDiscoverer.html[DefaultParameterNameDiscoverer]` to discover parameter names, so you
324
-
can access your parameters in several different ways:
323
+
It uses the `https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/DefaultParameterNameDiscoverer.html[DefaultParameterNameDiscoverer]` to discover parameter names, so you can access your parameters in several different ways:
325
324
326
325
1. using `p#` syntax, where `#` is the position of the parameter, for an example: `p0` for the first parameter
327
326
2. using `a#` syntax, where `#` is the position of the parameter, for an example: `a2` for the third parameter
328
327
3. using the parameter name, for an example, `#message` -- *REQUIRES `-parameters` compiler flag*
329
328
330
-
A special variable named `executionPath` is used to define the method called. This is the default `expression` used to describe the annotated method.
329
+
A special variable named `executionPath` is used to define the method called.
330
+
This is the default `expression` used to describe the annotated method.
331
331
332
-
All validated expressions that result in an `Iterable` or an array will be converted to `List<String>` and all other values will be wrapped with `Collections.toSingletonList`.
332
+
All validated expressions that result in an `Iterable` or an array will be converted to `List<String>` and all other values will be wrapped with `Collections.singletonList`.
333
333
Elements of `Iterable` or array will also be converted to Strings using the
334
-
`https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/convert/ConversionService.html[ConversionService]`. Custom converters can be registered.
0 commit comments