Skip to content

feat(examples/spring-boot-4): back Wirespec client with Boot 4 HTTP Service Client#652

Open
wilmveel wants to merge 2 commits into
masterfrom
claude/spring-http-service-client-iR8HQ
Open

feat(examples/spring-boot-4): back Wirespec client with Boot 4 HTTP Service Client#652
wilmveel wants to merge 2 commits into
masterfrom
claude/spring-http-service-client-iR8HQ

Conversation

@wilmveel

@wilmveel wilmveel commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Demonstrate Spring Framework 7 / Spring Boot 4 HTTP Service Client
enhancements in the maven-spring-boot-4-integration example:

  • Add WirespecRestClient, a synchronous RestClient-backed adapter that
    serializes Wirespec Request/Response via the generated Handler (the
    RestClient counterpart of the reactive WirespecWebClient).
  • Configure the backing RestClient through the new per-group config:
    spring.http.client.service.group.todo.* properties plus a
    RestClientHttpServiceGroupConfigurer bean.
  • Register the "todo" group via @ImportHttpServices with a small
    @HttpExchange TodoServiceClient so the group config is active.
  • Replace TodoWebClient with TodoClient, delegating to WirespecRestClient.
  • Add TodoClientTest driving /todos through the typed client, and a README.

claude added 2 commits June 1, 2026 18:57
…ervice Client

Demonstrate Spring Framework 7 / Spring Boot 4 HTTP Service Client
enhancements in the maven-spring-boot-4-integration example:

- Add WirespecRestClient, a synchronous RestClient-backed adapter that
  serializes Wirespec Request/Response via the generated Handler (the
  RestClient counterpart of the reactive WirespecWebClient).
- Configure the backing RestClient through the new per-group config:
  spring.http.client.service.group.todo.* properties plus a
  RestClientHttpServiceGroupConfigurer bean.
- Register the "todo" group via @ImportHttpServices with a small
  @HttpExchange TodoServiceClient so the group config is active.
- Replace TodoWebClient with TodoClient, delegating to WirespecRestClient.
- Add TodoClientTest driving /todos through the typed client, and a README.
The RestClient-backed Wirespec client needs a RestClient.Builder bean. In
Spring Boot 4 that autoconfiguration ships in the dedicated
spring-boot-starter-restclient, which the example did not depend on, so the
application context failed to start with NoSuchBeanDefinitionException for
RestClient.Builder. Add the starter so the bean is available at runtime.
@sonarqubecloud

sonarqubecloud Bot commented Jun 1, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants