-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AutoConfiguration.imports for basic spring boot v3.0 support #775
Add AutoConfiguration.imports for basic spring boot v3.0 support #775
Conversation
…figurations declaration appeared in spring boot 2.7.0
Nice! Have you tested whether having both causes issues? |
Well, I didn't do thorough testing, but checked all my in-house autoconfigurations from work and some open-source ones. And I didn't find anything wrong. |
When this will be merged ? |
When @yidongnan or I have time to test and review it. |
Just to note that since Spring Boot 3 doesn't support Workaround until this is merged is to import all of the configurations that are listed in current
|
have you created any sample project using spring boot 3 with this library . If you can provide the link it would be nice . |
@amitbansal26 https://github.com/NemanjaT/airsoft-iam This is the workaround I was talking about: |
Thanks So much this surely helps !!! |
Other workaround: create your own |
This file doesn't exist anymore. Also, has this config already been merged to grpc-spring-boot-starter? |
@bdevapatla It's been merged, but apparently hasn't made it into a tagged release yet. You can create this file (/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports) in your own project, and use that until it is. |
did anyone find that after adding these imports you get the Server port already in use when running |
Does anyone has an idea when we can expected a new tagged release including this changes? |
For anyone having the issue Try adding |
I do not think having GrpcConfig with all AutoConfig is correct. Not all projects have grpc client & server at the same time. If I have grpc client or grpc server, then I will end up having a meta-data exception since the corresponding jar file is missing. Until it get's fix I think that each project needs to add: META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports containing the exact set of the AutoConfig files, client or server or both. |
Hello!
I'd like to add the new style of auto-configurations declaration which appeared in spring boot 2.7 This version of spring supports old-style too, but spring boot 3.x won't support
spring.factories
anymore. I don't delete auto-configurations fromspring.factories
yet, as current baseline is spring boot 2.6.x.I'd like to merge this as I'm interested in preparing to 3.x release and this is a first step of it.