-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Issue after upgrading to 2.4.0 #24329
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
Comments
This is due to a change in Spring Framework 5.3. I guess in you case, you could annotate with I'm closing this issue as I don't think we can improve things in Spring Boot about that, since it's a deliberate Spring Framework change. |
Huh, thanks @bclozel. Maybe this should be mentioned in Spring Boot release notes / upgrading section also. |
That's really a big change in spring 5.3! Is there a chance to flexibly toggle this behaviour in spring-boot? [...] Just checked: |
This commit fixes the missing `strategiesConfigurers` copy when the `WebClient.Builder` is cloned. Fixes spring-projectsgh-24330 See spring-projectsgh-24329
Hi,
I have issue after upgrading to Spring Boot 2.4.0. I'm using Spring Data JPA and I have controller methods like one below:
ParentEntity and ChildEntity are Spring Data JPA entities.
This controller method is used for create or edit child entity.
For creating new
ChildEntity
path variablechildId
is0
and controller method is triggered withnull
asChildEntity
.For editing existing
ChildEntity
path variablechildId
is corresponding@Id
of entity (e.g. 22 - GET /123/child/22) and controller method is triggered with corresponding instance ofChildEntity
.e.g.:
With 2.3.6 (and older versions also) method is successfully processed, when I pass
0
aschildId
path variable, controller method is invoked withnull
asChildEntity
.With 2.4.0 and same request I get:
Edit of existing entities with 2.4.0 is working OK.
Anyone has any idea why is this happening with 2.4.0 and how to fix this?
Here is minimal sample to reproduce this issue.
The text was updated successfully, but these errors were encountered: