Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1690

omega-transport-resttemplate does not use RestTemplateBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • pack-0.6.0
    • Saga
    • None

    Description

      Currently omega-transport-resttemplate RestTemplateConfig creates a RestTemplate bean directly, not take advantage of RestTemplateBuilder (which provided in RestTemplateAutoConfiguration).

      This could cause some issues:

      1. No default or autoconfigured HttpMessageConverters, Interceptors added to it
      2. Client provided global RestTemplateCustomizers become useless
      3. Client provided global HttpMessageConverters become useless

      In one word, this RestTemplate contains only TransactionClientHttpRequestInterceptor.

      So we should useĀ RestTemplateBuilder.

      Attachments

        Issue Links

          Activity

            People

              chanjarster Daniel Qian
              chanjarster Daniel Qian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m