-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Open
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
Description
Java 21/Spring 7.0.0-M7/Spring Boot 4.0.0-M1, I attempted to write test code for the API with versioning. When building WebTestClient
and setting up apiVersioning
is not enough, an exception indicates that it requires ApiVersionInserter
. I need to use both configurations together to get it to work.
this.webTestClient = WebTestClient
.bindToController(new GreetingController())
.apiVersioning(apiVersionConfigurer ->
apiVersionConfigurer.useRequestHeader("X-API-Version").setDefaultVersion("1.0"))
.configureClient()
.apiVersionInserter(ApiVersionInserter.builder()
.useHeader("X-API-Version")
.build())
.build();
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on