Skip to content

Rest client config with springboot 3.3.3 to use virtual Threads #34393

Closed as not planned
@SzymonZasada

Description

@SzymonZasada

In Spring Boot 3.3.3, I have virtual threads enabled (spring.threads.virtual.enabled=true). However, I'm having trouble configuring RestClient to use virtual threads instead of platform threads.
Could someone share how to configure RestClient to use virtual threads? Here's my current configuration:

@Bean
public RestClient restClient(RestClient.Builder builder) {
    return builder
        .baseUrl("http://api.example.com")
        .build();
}

What's the proper way to configure RestClient to utilize virtual threads rather than platform threads?

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions