2
0
Эх сурвалжийг харах

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
Kamill Sokol 9 жил өмнө
parent
commit
9c3db557dd

+ 2 - 2
docs/manual/src/docs/asciidoc/index.adoc

@@ -4851,7 +4851,7 @@ You could refer to the method using:
 ----
 <http>
 	<intercept-url pattern="/user/{userId}/**"
-		access="@webSecurity.checkUserId(authentication,userId)"/>
+		access="@webSecurity.checkUserId(authentication,#userId)"/>
 	...
 </http>
 ----
@@ -4862,7 +4862,7 @@ or in Java configuration
 ----
 http
 		.authorizeUrls()
-				.antMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,userId)")
+				.antMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,#userId)")
 				...
 ----