openrewrite / openrewrite/rewrite-spring

Refactor `RestTemplate` to `WebClient` or `RestClient`

Open
#71 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

recipe
Dominant language
Java
Stars
403
Forks
149
Avg merge
2h 33m
Merged PRs (30d)
10

Description

As of Spring Framework 5.0, RestTemplate has been put into maintenance mode with a recommendation to attempt to use WebClient. A refactoring rule for this would be awesome and should be fairly straightforward.

Source: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Spring Framework RestTemplate documentation and inspect the repository for existing Spring refactoring recipes and their tests. The issue does not name an entry point or test, and completion would require defining whether the recipe targets WebClient, RestClient, or both and demonstrating the intended migration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.