-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Document changes in rendering of PageImpl instances in Spring Boot 3.3 migration guide #41856
Comments
Thanks for the suggestion. We'd prefer to link out to something provided by the Spring Data project rather than documenting it ourselves. I'll ask the Data team if they have such a thing. |
I assume, given that you've mentioned both Boot 3.2 and 3.3, that you're upgrading from 3.1. The Data team are a bit puzzled as "all we added for 3.3 is a warning and a mechanism to flip all renderings to a new, preferred model". Can you please share a minimal sample that works with Spring Boot 3.1.x and requires changes to continue to work in the same way with Spring Boot 3.3.x? |
Sure.
After the upgrade to Spring Boot 3.3.2 the additional field headerRow was missing wheater I added and configured the @EnableSpringDataWebSupport annotation or not. |
Thank you. Could you please turn that snippet into a minimal example that we can build and run to observe the behaviour you have described? |
It looks like the use of extension may be what's causing the problem. The Data team are going to investigate and add something to https://github.com/spring-projects/spring-data-commons/wiki/Spring-Data-2024.0-Release-Notes if necessary. On the Boot side, I've updated the Dependency Upgrades section of our 3.3 release notes to link to Spring Data's release notes. |
It looks like the problem is caused by our registration of a Jackson I think Jackson could fix this by using the more concrete type of the two, i.e. testing for assignability and sticking to the original type if that's assignable to the detected one. I'll go ahead and open a ticket with Jackson to get this fixed. Meanwhile, I'll investigate whether we can use different means to produce the log message, so that we might not have to wait for Jackson to fix this. |
We found a less invasive way of issuing the warning, which will make it into the Spring Data releases tomorrow, picked up by the Boot releases next week. I'll make sure we leave a note about the changes in general in the official changelog. |
Thanks, @odrotbohm. |
Thank you very much for the quick response, explanation and fix! |
During the migration to Spring Boot 3.3 I recently stumbled over the changes when rendering org.springframework.data.domain.PageImpl instances to JSON. In my case an additional field wasn't any longer present in the response.
The prefered way is now to wrap the response in PagedModel class or use the @EnableSpringDataWebSupport annotation. To find this out it took me hours unfortunately.
I couldn't find a hint in Spring Boot 3.2 and Spring Boot 3.3 migration guide.
Could you please add a note there?
The text was updated successfully, but these errors were encountered: