openrewrite / openrewrite/rewrite-spring
Refactor `RestTemplate` to `WebClient` or `RestClient`
Open
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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