-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[FEATURE REQ] Spring Data Cosmos supports Spring Boot 3 and Spring Data 3 #30458
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar, @TheovanKraay |
Hi @kushagraThapar , we plan to release a milestone Spring Cloud Azure based on Spring Boot 3.0.0 milestone version, please help to take a look! |
@moarychan - got it, now we won't be overriding @saragluna - I believe this change can be done by the developer who is working on spring-boot 3.0.0-M3 release, and we can help if needed. I think all we need to do is remove the |
Hi @kushagraThapar , thanks for your update. We plan to modify this in the spring-boot-3 branch and then release a beta version for both Spring Data Cosmos and other Spring Cloud Azure libraries. |
According to https://github.com/spring-projects/spring-data-commons/wiki/Spring-Data-2022.0-(Turing)-Release-Notes-(Preview)#sorting-repositories-no-longer-inherit-from-crud-repositories, we only need to extend the respective CRUD repository explicitly. |
#31417 to unblock the JDK 17 support. To support Spring Data Commons 3.x: we need to
|
refer to this for how to support saragluna@afcfe95. |
Is there any chance for a small Azure CosmosDB customer to expedite this? Like the previous reply, I don't want to be stuck on Spring Boot 2.x until the end of the year and would be looking into alternatives outside of CosmosDB if there is no way. For reference, Spring Boot 3.0.0 went GA on 24th of November last year. |
We have discussed this and re-prioritized. |
I say that's moving to the right direction. Thanks. |
As per the project requirement , I have to migrate spring boot application from Spring boot 2.7.6 to 3.0.0 version. I have modified the below changes from my existing application. Changed the java version from java 11 to 17. Issue Description:: APPLICATION FAILED TO START Description: Field empRepository in com.example.SpringBootDemo.Service.EmpService required a bean of type 'com.example.SpringBootDemo.repository.EmpRepository' that could not be found. The injection point has the following annotations: @org.springframework.beans.factory.annotation.Autowired(required=true) Consider defining a bean of type 'com.example.SpringBootDemo.repository.EmpRepository' in your configuration. Process finished with exit code 1 I am able to replicate this issue , Please find the below repository git hub code. https://github.com/nagaraju1692/SpringBootDemoCosmosDB |
Hi @nagaraju1692, thank you for your issue. I saw you still use For some reason, spring data cosmos haven't supported Spring Boot 3 yet, you could still use Spring Boot 2.x with BTW, Spring data cosmos support for Spring Boot 3 will be released recently, please pay attention to our latest information when it is published. |
Is there any update on when CosmosDB will be supported in Spring Boot 3? |
@katperi - the work is currently in progress and will be done soon. Current ETA is June 2023. |
Hi guys, it is June 2023! Do you have any update on this topic? is it on track? |
@edgarla yes, it is on track, will be released in this month's release schedule. will keep you posted once the release is done. |
Dear team, when do you plan to release the Spring Boot 3.0 support? |
@christian-ehmke - its on-track and still planned to be released for this month end. |
Any update on this? Are you guys still on track? what is the ETA? |
Sorry for the late reploy. We are preparing the release this week. It will be out before the end of this month. |
@kushagraThapar and @saragluna: Are hierarchical partition keys also part of the upcoming release? |
The Spring Cloud Azure 5.3.0 has been released. |
@kushagraThapar could help with this question. |
@saragluna: ok cool, but what about "com.azure:azure-spring-data-cosmos"? |
Sorry for didn’t clarify it, the spring data cosmos is managed by spring cloud azure now. Its version is 5.3.0 too. Check this bom file https://repo1.maven.org/maven2/com/azure/spring/spring-cloud-azure-dependencies/5.3.0/spring-cloud-azure-dependencies-5.3.0.pom. |
@saragluna Thank you so much. |
@christian-ehmke support for hierarchical partition keys in Spring Data is not included in this release. It is being worked on currently. |
Thank you for the update! Is there already a release plan/date for this feature? |
@christian-ehmke no firm date yet, as hierarchical partition keys is not a concept that is part of the core Spring Data framework. So, it will need some API design (and we are in that phase). But, we are working on it. Is this feature a dependency for your current/future development? |
@TheovanKraay: Yes we are going to use hierarchical partition keys and we plan to use the Spring ecosystem/abstractions to use it. I think we will address this topic again with your representative at our client. Thank you so much for your fast reply! |
Closing this issue, as spring data cosmos supports spring boot 3 and spring data 3 now, thanks! |
Context
Problems
The latest Spring Data cosmos is incompatible with Spring Boot 3.0.0 and Spring Data 3.0.0
User scenario 1
Users can not find a Spring Cloud Azure version compatible based on Spring Data 3.0.0.
User scenario 2
Users should check the documentation to confirm which version of Spring Boot matches Spring Data Cosmos, then check the Spring Cloud Azure version mapping to confirm which version Spring Boot version matches Spring Cloud Azure, because they don't have the same versions for Spring Data Cosmos and Spring Cloud Azure.
Goal
Move azure-spring-data-cosmos to ask/spring, and use a unified version in Spring Cloud Azure.
Spring Data Cosmos support Spring Data 3.0.0.
Support Spring Data Cosmos auto-configuration in Spring Cloud Azure autoconfigure.
Support Spring Data Cosmos AOT.
Add Spring Data Cosmos samples in Azure-samples repo.
Add Spring Data Support doc in the reference doc of Spring Cloud Azure.
The text was updated successfully, but these errors were encountered: