Skip to content

Remove deprecated RestTemplateFactory and RestTemplateBuilder beans - #1012

Closed
yashdotdev13 wants to merge 1 commit into
spring-cloud:mainfrom
yashdotdev13:fix/1000-remove-resttemplate-beans
Closed

yashdotdev13 wants to merge 1 commit into
spring-cloud:mainfrom
yashdotdev13:fix/1000-remove-resttemplate-beans

Conversation

@yashdotdev13

Copy link
Copy Markdown

Summary

This PR addresses [#1000](#1000) by removing deprecated RestTemplateFactory and RestTemplateBuilder bean registrations and migrating the affected configuration to RestClient.

Changes

  • Remove the deprecated RestTemplateFactory and RestTemplateBuilder bean registrations.
  • Delete DefaultRestTemplateFactory.
  • Refactor VaultAutoConfiguration to configure RestClient directly.
  • Update VaultConfigDataLoader to create VaultClient using RestClient.
  • Remove obsolete RestTemplate-related customizer dependencies from bootstrap and Vault configuration.
  • Migrate observation customizer configuration to RestClientCustomizer.
  • Update tests to verify the removal of legacy beans and use the new RestClient-based configuration.

Testing

  • Module compilation successful.
  • 27 focused tests passed with no failures or errors.
  • git diff --check passed.

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
@mp911de

mp911de commented Nov 5, 2026

Copy link
Copy Markdown
Member

This is a ticket for the next major revision within a few years and we don't want to keep this pull request around. The negative value it generates throughout its lifetime outweighs its actual value.

@mp911de mp911de closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants