Skip to content

Commit c8b3cea

Browse files
committed
Clarify that registration bean URL patterns use Servlet spec format
Closes gh-13080
1 parent d2cef48 commit c8b3cea

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -157,16 +157,17 @@ public void setUrlPatterns(Collection<String> urlPatterns) {
157157
}
158158

159159
/**
160-
* Return a mutable collection of URL patterns that the filter will be registered
161-
* against.
160+
* Return a mutable collection of URL patterns, as defined in the Servlet
161+
* specification, that the filter will be registered against.
162162
* @return the URL patterns
163163
*/
164164
public Collection<String> getUrlPatterns() {
165165
return this.urlPatterns;
166166
}
167167

168168
/**
169-
* Add URL patterns that the filter will be registered against.
169+
* Add URL patterns, as defined in the Servlet specification, that the filter will be
170+
* registered against.
170171
* @param urlPatterns the URL patterns
171172
*/
172173
public void addUrlPatterns(String... urlPatterns) {

spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -128,15 +128,16 @@ public void setUrlMappings(Collection<String> urlMappings) {
128128
}
129129

130130
/**
131-
* Return a mutable collection of the URL mappings for the servlet.
131+
* Return a mutable collection of the URL mappings, as defined in the Servlet
132+
* specification, for the servlet.
132133
* @return the urlMappings
133134
*/
134135
public Collection<String> getUrlMappings() {
135136
return this.urlMappings;
136137
}
137138

138139
/**
139-
* Add URL mappings for the servlet.
140+
* Add URL mappings, as defined in the Servlet specification, for the servlet.
140141
* @param urlMappings the mappings to add
141142
* @see #setUrlMappings(Collection)
142143
*/

0 commit comments

Comments
 (0)