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: docs/modules/ROOT/pages/servlet/authorization/method-security.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -1804,7 +1804,7 @@ The intention of this expression is to require that the current `Authentication`
1804
1804
+
1805
1805
Behind the scenes, this is implemented by using `AnnotationParameterNameDiscoverer`, which you can customize to support the value attribute of any specified annotation.
1806
1806
1807
-
* If xref:servlet/integrations/data.adoc[Spring Data's] `@Param` annotation is present on at least one parameter for the method, the value is used.
1807
+
2. If xref:servlet/integrations/data.adoc[Spring Data's] `@Param` annotation is present on at least one parameter for the method, the value is used.
1808
1808
The following example uses the `@Param` annotation:
1809
1809
+
1810
1810
[tabs]
@@ -1838,10 +1838,10 @@ The intention of this expression is to require that `name` be equal to `Authenti
1838
1838
+
1839
1839
Behind the scenes, this is implemented by using `AnnotationParameterNameDiscoverer`, which you can customize to support the value attribute of any specified annotation.
1840
1840
1841
-
* If you compile your code with the `-parameters` argument, the standard JDK reflection API is used to discover the parameter names.
1841
+
3. If you compile your code with the `-parameters` argument, the standard JDK reflection API is used to discover the parameter names.
1842
1842
This works on both classes and interfaces.
1843
1843
1844
-
* Finally, if you compile your code with debug symbols, the parameter names are discovered by using the debug symbols.
1844
+
4. Finally, if you compile your code with debug symbols, the parameter names are discovered by using the debug symbols.
1845
1845
This does not work for interfaces, since they do not have debug information about the parameter names.
1846
1846
For interfaces, either annotations or the `-parameters` approach must be used.
0 commit comments