You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ResourceHandlerRegistration.java
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -99,9 +99,7 @@ public ResourceHandlerRegistration setCachePeriod(Integer cachePeriod) {
99
99
/**
100
100
* Specify the {@link org.springframework.http.CacheControl} which should be used
101
101
* by the resource handler.
102
-
*
103
102
* <p>Setting a custom value here will override the configuration set with {@link #setCachePeriod}.
104
-
*
105
103
* @param cacheControl the CacheControl configuration to use
106
104
* @return the same {@link ResourceHandlerRegistration} instance, for chained method invocation
107
105
* @since 4.2
@@ -114,11 +112,9 @@ public ResourceHandlerRegistration setCacheControl(CacheControl cacheControl) {
114
112
/**
115
113
* Configure a chain of resource resolvers and transformers to use. This
116
114
* can be useful, for example, to apply a version strategy to resource URLs.
117
-
*
118
115
* <p>If this method is not invoked, by default only a simple
119
116
* {@link PathResourceResolver} is used in order to match URL paths to
120
117
* resources under the configured locations.
121
-
*
122
118
* @param cacheResources whether to cache the result of resource resolution;
123
119
* setting this to "true" is recommended for production (and "false" for
124
120
* development, especially when applying a version strategy)
@@ -133,11 +129,9 @@ public ResourceChainRegistration resourceChain(boolean cacheResources) {
133
129
/**
134
130
* Configure a chain of resource resolvers and transformers to use. This
135
131
* can be useful, for example, to apply a version strategy to resource URLs.
136
-
*
137
132
* <p>If this method is not invoked, by default only a simple
138
133
* {@link PathResourceResolver} is used in order to match URL paths to
139
134
* resources under the configured locations.
140
-
*
141
135
* @param cacheResources whether to cache the result of resource resolution;
142
136
* setting this to "true" is recommended for production (and "false" for
143
137
* development, especially when applying a version strategy
@@ -154,15 +148,16 @@ public ResourceChainRegistration resourceChain(boolean cacheResources, Cache cac
154
148
returnthis.resourceChainRegistration;
155
149
}
156
150
151
+
157
152
/**
158
-
* Returns the URL path patterns for the resource handler.
153
+
* Return the URL path patterns for the resource handler.
159
154
*/
160
155
protectedString[] getPathPatterns() {
161
156
returnthis.pathPatterns;
162
157
}
163
158
164
159
/**
165
-
* Returns a {@link ResourceHttpRequestHandler} instance.
160
+
* Return a {@link ResourceHttpRequestHandler} instance.
0 commit comments