|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2021 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.
|
|
68 | 68 | /**
|
69 | 69 | * Synchronous client to perform HTTP requests, exposing a simple, template
|
70 | 70 | * method API over underlying HTTP client libraries such as the JDK
|
71 |
| - * {@code HttpURLConnection}, Apache HttpComponents, and others. |
| 71 | + * {@code HttpURLConnection}, Apache HttpComponents, and others. RestTemplate |
| 72 | + * offers templates for common scenarios by HTTP method, in addition to the |
| 73 | + * generalized {@code exchange} and {@code execute} methods that support of |
| 74 | + * less frequent cases. |
72 | 75 | *
|
73 |
| - * <p>The RestTemplate offers templates for common scenarios by HTTP method, in |
74 |
| - * addition to the generalized {@code exchange} and {@code execute} methods that |
75 |
| - * support of less frequent cases. |
| 76 | + * <p>RestTemplate is typically used as a shared component. However, its |
| 77 | + * configuration does not support concurrent modification, and as such its |
| 78 | + * configuration is typically prepared on startup. If necessary, you can create |
| 79 | + * multiple, differently configured RestTemplate instances on startup. Such |
| 80 | + * instances may use the same the underlying {@link ClientHttpRequestFactory} |
| 81 | + * if they need to share HTTP client resources. |
76 | 82 | *
|
77 | 83 | * <p><strong>NOTE:</strong> As of 5.0 this class is in maintenance mode, with
|
78 | 84 | * only minor requests for changes and bugs to be accepted going forward. Please,
|
|
0 commit comments