1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
54
54
* Adds a request authorization rule for an endpoint matching the provided
55
55
* pattern.
56
56
* If Spring MVC is on the classpath, it will use an MVC matcher.
57
- * If Spring MVC is not an the classpath, it will use an ant matcher.
57
+ * If Spring MVC is not on the classpath, it will use an ant matcher.
58
58
* The MVC will use the same rules that Spring MVC uses for matching.
59
59
* For example, often times a mapping of the path "/path" will match on
60
60
* "/path", "/path/", "/path.html", etc.
@@ -75,7 +75,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
75
75
* Adds a request authorization rule for an endpoint matching the provided
76
76
* pattern.
77
77
* If Spring MVC is on the classpath, it will use an MVC matcher.
78
- * If Spring MVC is not an the classpath, it will use an ant matcher.
78
+ * If Spring MVC is not on the classpath, it will use an ant matcher.
79
79
* The MVC will use the same rules that Spring MVC uses for matching.
80
80
* For example, often times a mapping of the path "/path" will match on
81
81
* "/path", "/path/", "/path.html", etc.
@@ -98,7 +98,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
98
98
* Adds a request authorization rule for an endpoint matching the provided
99
99
* pattern.
100
100
* If Spring MVC is on the classpath, it will use an MVC matcher.
101
- * If Spring MVC is not an the classpath, it will use an ant matcher.
101
+ * If Spring MVC is not on the classpath, it will use an ant matcher.
102
102
* The MVC will use the same rules that Spring MVC uses for matching.
103
103
* For example, often times a mapping of the path "/path" will match on
104
104
* "/path", "/path/", "/path.html", etc.
@@ -122,7 +122,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
122
122
* Adds a request authorization rule for an endpoint matching the provided
123
123
* pattern.
124
124
* If Spring MVC is on the classpath, it will use an MVC matcher.
125
- * If Spring MVC is not an the classpath, it will use an ant matcher.
125
+ * If Spring MVC is not on the classpath, it will use an ant matcher.
126
126
* The MVC will use the same rules that Spring MVC uses for matching.
127
127
* For example, often times a mapping of the path "/path" will match on
128
128
* "/path", "/path/", "/path.html", etc.
@@ -154,7 +154,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
154
154
fun hasAuthority (authority : String ) = " hasAuthority('$authority ')"
155
155
156
156
/* *
157
- * Specify that URLs requires any of a number authorities.
157
+ * Specify that URLs require any number of authorities.
158
158
*
159
159
* @param authorities the authorities to require (i.e. ROLE_USER, ROLE_ADMIN, etc).
160
160
* @return the SpEL expression "hasAnyAuthority" with the given authorities as a
@@ -175,7 +175,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
175
175
fun hasRole (role : String ) = " hasRole('$role ')"
176
176
177
177
/* *
178
- * Specify that URLs requires any of a number roles.
178
+ * Specify that URLs require any number of roles.
179
179
*
180
180
* @param roles the roles to require (i.e. USER, ADMIN, etc).
181
181
* @return the SpEL expression "hasAnyRole" with the given roles as a
0 commit comments