OpenAPITools / OpenAPITools/openapi-generator
[REQ] RestTemplate support for Spring boot 3
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
With the release of Spring Boot 3, it now uses JDK 17 and Spring Web 6. If you try using a Spring Boot 3 server with resttemplate generated client, it doesn't work because of some breaking changes with headers.
Describe the solution you'd like
The Spring Boot server generator uses a flag "useSpringBoot3", it'd be nice if we had that option with the Spring related clients (e.g. resttemplate and webclient)
Describe alternatives you've considered
Manually upgrading to Spring 6 when generating the client.
Additional context
N/A
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 by locating the Spring-related RestTemplate and WebClient client generators, then compare them with the Spring Boot server generator's existing useSpringBoot3 option. Inspect how generated clients handle headers under Spring Web 6. Done means the Spring clients expose the option and generate clients that work with Spring Boot 3 without manual Spring 6 upgrades.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100