Skip to content

Commit a9eb089

Browse files
authored
docs: Typo in page Preparing for 7.0 / Web (version 6.5)
In section 'Include the Servlet Path Prefix in Authorization Rules', `PathPatternRequestParser` should be replaced by `PathPatternRequestMatcher`. Signed-off-by: Guillaume Husta <guillaume.husta@gmail.com>
1 parent 765abe5 commit a9eb089

File tree

1 file changed

+5
-5
lines changed
  • docs/modules/ROOT/pages/migration-7

1 file changed

+5
-5
lines changed

docs/modules/ROOT/pages/migration-7/web.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,22 +414,22 @@ Instead of taking this responsibility away from developers, now it is simpler to
414414

415415
[method,java]
416416
----
417-
PathPatternRequestParser.Builder servlet = PathPatternRequestParser.withDefaults().basePath("/mvc");
417+
PathPatternRequestMatcher.Builder servlet = PathPatternRequestMatcher.withDefaults().basePath("/mvc");
418418
http
419419
.authorizeHttpRequests((authorize) -> authorize
420-
.requestMatchers(servlet.pattern("/orders/**").matcher()).authenticated()
420+
.requestMatchers(servlet.matcher("/orders/**")).authenticated()
421421
)
422422
----
423423

424424

425-
For paths that belong to the default servlet, use `PathPatternRequestParser.withDefaults()` instead:
425+
For paths that belong to the default servlet, use `PathPatternRequestMatcher.withDefaults()` instead:
426426

427427
[method,java]
428428
----
429-
PathPatternRequestParser.Builder request = PathPatternRequestParser.withDefaults();
429+
PathPatternRequestMatcher.Builder request = PathPatternRequestMatcher.withDefaults();
430430
http
431431
.authorizeHttpRequests((authorize) -> authorize
432-
.requestMatchers(request.pattern("/js/**").matcher()).authenticated()
432+
.requestMatchers(request.matcher("/js/**")).authenticated()
433433
)
434434
----
435435

0 commit comments

Comments
 (0)