this dependency seems to be incompatible with new version 3.x of spring boot.
The context
upgrade my app to spring boot 3.X
The bug
"grpc-spring-boot-starter" seems to not have a version compatible with spring boot 3.x as of now. And since their auto-configuration is still present in "spring.factories" file, some of the beans for these dependencies are not being autowired after migration to spring boot 3, resulting in application start up failures.
Could you please post the error mesaage along with the version you are using?
I'm having a similar problem. I'm following the Getting Started Guide, but Spring Boot 3 seems to ignore @GrpcService. Probably there is some kind of auto-detecting issue described in 3rd task of Implementing the Service.
And my pom.xml, downgrading spring-boot-starter-parent seemed to work for me.
i.e. from:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
to:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.7</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
You never said which version of grpc-spring you are using. Is it possibly not the latest?
You never said which version of grpc-spring you are using. Is it possibly not the latest?
You were right, I was using 2.15.0 and 3.0.0 is released and Beans are autowired there. What a simple mistake, thank you!