浏览代码

Fix incorrect documentation

username1103 2 年之前
父节点
当前提交
14b328e3ed
共有 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

@@ -562,8 +562,8 @@ http
 ----
 http {
     authorizeHttpRequests {
-        authorize(DispatcherType.FORWARD, permitAll)
-        authorize(DispatcherType.ERROR, permitAll)
+        authorize(DispatcherTypeRequestMatcher(DispatcherType.FORWARD), permitAll)
+        authorize(DispatcherTypeRequestMatcher(DispatcherType.ERROR), permitAll)
         authorize("/endpoint", permitAll)
         authorize(anyRequest, denyAll)
     }