From b1c36cd5598eb6ebe06f02b9e20c319802957f11 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 6 Jun 2025 17:16:24 +0100 Subject: [PATCH] Correct reference to old annotation name --- spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc b/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc index a46c85b..493b01b 100644 --- a/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc +++ b/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc @@ -29,7 +29,7 @@ There is a default named channel that you can configure as `spring.grpc.client.d == Automatic Client Configuration -The automatic creation of beans for gRPC stubs is switched on by the `@EnableGrpcClients` annotation. +The automatic creation of beans for gRPC stubs is switched on by the `@ImportGrpcClients` annotation. A Spring Boot application will have one of these by default, but you can add your own safely if you want to change the defaults, for instance to change the base type of the stubs or to scan a different package. Spring gRPC will scan the application packages for gRPC stubs and automatically create bean definitions, as long as the default channel is configured via `spring.grpc.client.default-channel.*` (it needs at least a target URL to work).