소스 검색

Fix typo in doc

wonwoo 4 년 전
부모
커밋
cf2bb62442
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      config/src/main/kotlin/org/springframework/security/config/web/server/ServerHttpSecurityDsl.kt

+ 4 - 4
config/src/main/kotlin/org/springframework/security/config/web/server/ServerHttpSecurityDsl.kt

@@ -35,8 +35,8 @@ import org.springframework.web.server.WebFilter
  *  fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
  *      return http {
  *          authorizeExchange {
- *              exchange("/public", permitAll)
- *              exchange(anyExchange, authenticated)
+ *              authorize("/public", permitAll)
+ *              authorize(anyExchange, authenticated)
  *          }
  *       }
  *   }
@@ -207,8 +207,8 @@ class ServerHttpSecurityDsl(private val http: ServerHttpSecurity, private val in
      *  fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
      *      return http {
      *          authorizeExchange {
-     *              exchange("/public", permitAll)
-     *              exchange(anyExchange, authenticated)
+     *              authorize("/public", permitAll)
+     *              authorize(anyExchange, authenticated)
      *          }
      *       }
      *   }