Skip to content

Deferred Init of Repositories Hangs under SB 2.3.0 Release & Surefire [DATAJPA-1731] #2026

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions