File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
spring-web/src/main/java/org/springframework/web Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2018 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.
@@ -301,9 +301,15 @@ else if (this.uriTemplateHandler instanceof org.springframework.web.util.Abstrac
301
301
* Configure the {@link UriTemplateHandler} to use to expand URI templates.
302
302
* By default the {@link DefaultUriBuilderFactory} is used which relies on
303
303
* Spring's URI template support and exposes several useful properties that
304
- * customize its behavior for encoding and for prepending a common base URL.
304
+ * customize its behavior for encoding and for pre-pending a common base URL.
305
305
* An alternative implementation may be used to plug an external URI
306
306
* template library.
307
+ * <p><strong>Note:</strong> if switching from
308
+ * {@link org.springframework.web.util.DefaultUriTemplateHandler
309
+ * DefaultUriTemplateHandler} (deprecated in 4.3) to
310
+ * {@link DefaultUriBuilderFactory} keep in mind that the
311
+ * {@link DefaultUriBuilderFactory} has a different default for the
312
+ * {@code parsePath} property (from false to true).
307
313
* @param handler the URI template handler to use
308
314
*/
309
315
public void setUriTemplateHandler (UriTemplateHandler handler ) {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2018 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.
33
33
*
34
34
* @author Rossen Stoyanchev
35
35
* @since 4.2
36
- * @deprecated as of 5.0 in favor of {@link DefaultUriBuilderFactory}
36
+ * @deprecated as of 5.0 in favor of {@link DefaultUriBuilderFactory}.
37
+ * <p><strong>Note:</strong> {@link DefaultUriBuilderFactory} has a different
38
+ * default for the {@link #setParsePath(boolean) parsePath} property (from
39
+ * false to true).
37
40
*/
38
41
@ Deprecated
39
42
public class DefaultUriTemplateHandler extends AbstractUriTemplateHandler {
You can’t perform that action at this time.
0 commit comments