浏览代码

Merge branch '6.1.x' into 6.2.x

Marcus Hert Da Coregio 1 年之前
父节点
当前提交
cb56d1c694
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

+ 2 - 2
docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

@@ -188,7 +188,7 @@ Java::
 SecurityFilterChain web(HttpSecurity http) throws Exception {
 	http
 		.authorizeHttpRequests((authorize) -> authorize
-			.requestMatchers("/endpoint").hasAuthority('USER')
+			.requestMatchers("/endpoint").hasAuthority("USER")
 			.anyRequest().authenticated()
 		)
         // ...
@@ -205,7 +205,7 @@ Kotlin::
 SecurityFilterChain web(HttpSecurity http) throws Exception {
 	http {
         authorizeHttpRequests {
-            authorize("/endpoint", hasAuthority('USER'))
+            authorize("/endpoint", hasAuthority("USER"))
             authorize(anyRequest, authenticated)
         }
 	}