Skip to content

Commit d99e985

Browse files
aaron-to-gomarcusdacoregio
authored andcommitted
Fix typo in the 'Authorizing Requests' example
The example request matcher listed "/resources/**", while the explanation (3) used "/static/" instead.
1 parent ba85126 commit d99e985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ SecurityFilterChain web(HttpSecurity http) throws Exception {
749749
Each rule is considered in the order they were declared.
750750
<2> Dispatches `FORWARD` and `ERROR` are permitted to allow {spring-framework-reference-url}web.html#spring-web[Spring MVC] to render views and Spring Boot to render errors
751751
<3> We specified multiple URL patterns that any user can access.
752-
Specifically, any user can access a request if the URL starts with "/resources/", equals "/signup", or equals "/about".
752+
Specifically, any user can access a request if the URL starts with "/static/", equals "/signup", or equals "/about".
753753
<4> Any URL that starts with "/admin/" will be restricted to users who have the role "ROLE_ADMIN".
754754
You will notice that since we are invoking the `hasRole` method we do not need to specify the "ROLE_" prefix.
755755
<5> Any URL that starts with "/db/" requires the user to have both been granted the "db" permission as well as be a "ROLE_ADMIN".

0 commit comments

Comments
 (0)