You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating project to Spring Boot 2.3.0, Spring Data JPA is hanging on deferred initialization of repositories when executing tests under Maven Surefire.
If property spring.data.jpa.repositories.bootstrap-mode is set to lazy, tests under surefire will pass, but application will hang on startup.
If spring.data.jpa.repositories.bootstrap-mode is set to default tests will pass, and application will startup normally.
Running tests via IntelliJ seems to work normally for any setting.
I have two similar projects showing the same behavior - I can share if helpful (roughly same level of complexity though)
Saw this issue in the 2.3.0 release notes, looks like 'default' is no longer 'default', but 'deferred' is the new default autoconfig value. spring-projects/spring-boot#16230
Explains why I started to see this behavior with the upgrade
springframeworkguru opened DATAJPA-1731 and commented
After updating project to Spring Boot 2.3.0, Spring Data JPA is hanging on deferred initialization of repositories when executing tests under Maven Surefire.
If property spring.data.jpa.repositories.bootstrap-mode is set to lazy, tests under surefire will pass, but application will hang on startup.
If spring.data.jpa.repositories.bootstrap-mode is set to default tests will pass, and application will startup normally.
Running tests via IntelliJ seems to work normally for any setting.
Example project here: https://github.com/springframeworkguru/mssc-beer-service
Was working fine under Spring Boot 2.2.x. Only started happening under Spring Boot 2.3.0.
No further details from DATAJPA-1731
The text was updated successfully, but these errors were encountered: