You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Daniel Qian (Jira)" <ji...@apache.org> on 2019/12/27 02:05:00 UTC

[jira] [Created] (SCB-1690) omega-transport-resttemplate should use RestTemplateCustomizer

Daniel Qian created SCB-1690:
--------------------------------

             Summary: omega-transport-resttemplate should use RestTemplateCustomizer
                 Key: SCB-1690
                 URL: https://issues.apache.org/jira/browse/SCB-1690
             Project: Apache ServiceComb
          Issue Type: Improvement
          Components: Saga
    Affects Versions: pack-0.6.0
            Reporter: Daniel Qian
            Assignee: Daniel Qian


Currently omega-transport-resttemplate use RestTemplateConfig to create a RestTemplate bean, which shades the bean create by spring boot RestTemplateAutoConfiguration.

This could cause some issues:
 # No default or autoconfigured HttpMessageConverters add to this template
 # Client provided RestTemplateCustomizers become useless
 # Client provided HttpMessageConverters become useless

In one word, this method rest the function of RestTemplate, instead of add function to RestTemplate.

So we should use RestTemplateCustomizer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)