Add missing # in SpEL expression doc
SpEL variables can be referenced in the expression using the syntax 23.2.2 Path Variables in Web Security Expressions. Fixes gh-3781
This commit is contained in:
parent
f49cd5faba
commit
9c3db557dd
|
@ -4851,7 +4851,7 @@ You could refer to the method using:
|
||||||
----
|
----
|
||||||
<http>
|
<http>
|
||||||
<intercept-url pattern="/user/{userId}/**"
|
<intercept-url pattern="/user/{userId}/**"
|
||||||
access="@webSecurity.checkUserId(authentication,userId)"/>
|
access="@webSecurity.checkUserId(authentication,#userId)"/>
|
||||||
...
|
...
|
||||||
</http>
|
</http>
|
||||||
----
|
----
|
||||||
|
@ -4862,7 +4862,7 @@ or in Java configuration
|
||||||
----
|
----
|
||||||
http
|
http
|
||||||
.authorizeUrls()
|
.authorizeUrls()
|
||||||
.antMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,userId)")
|
.antMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,#userId)")
|
||||||
...
|
...
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue