接口 UriTemplateHandler
public interface UriTemplateHandler
Strategy for expanding a URI template with full control over the URI template syntax and the encoding of variables. Also a convenient central point for pre-processing all URI templates for example to insert a common base path.Supported as a property on the
RestTemplate
as well as theAsyncRestTemplate
. TheDefaultUriTemplateHandler
is built on Spring's URI template support viaUriComponentsBuilder
. An alternative implementation may be used to plug external URI template libraries.- 从以下版本开始:
- 4.2
- 作者:
- Rossen Stoyanchev
- 另请参阅:
RestTemplate.setUriTemplateHandler(org.springframework.web.util.UriTemplateHandler)