瀏覽代碼

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 年之前
父節點
當前提交
9c3db557dd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/manual/src/docs/asciidoc/index.adoc

+ 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)")
 				...
 ----