This is a demo application showcasing the newly introduced API Version Control in Spring Boot 4 and Spring 7.
- Built with Java 25
- Demonstrates three strategies for API versioning:
- Path Segment
- Request Header
- Query Parameter
Each branch contains the relevant configuration and controller APIs for its versioning strategy.
Check out a specific branch to explore its implementation:
path-segment
— Versioning via URL path segmentsrequest-header
— Versioning via custom request headersquery-param
— Versioning via query parameters
Clone the repository and switch to the desired branch to explore each versioning strategy.
- Java 25
- Spring Boot 4 with spring 7
This project is for demonstration purposes only.
This demo includes integrated Swagger support for interactive API documentation and testing.
- Access Swagger UI at:
http://localhost:8080/swagger-ui.html
(default path)