当我将我的一个Hibernate搜索项目从Spring Boot 2.2.7.RELEASE迁移到2.3.0.RELEASE时,应用程序在启动时就开始面临死锁。
我在日志中也看不到任何错误。
我的示例项目在这里:https://github.com/cancerian0684/listing-service
如果我将Spring Boot 2.3.0回滚到2.2.7,一切又开始正常工作了。在Spring Boot 2.3.0中使用Hibernate Search (尝试5.x和6.0.0.Beta8)是否存在已知问题?
发布于 2020-06-07 21:11:33
Spring Boot 2.3切换到延迟的JPA初始化,这导致了一些问题,Hibernate Search就是其中之一。您应该能够使用以下属性使其恢复工作
spring.data.jpa.repositories.bootstrap-mode=default有关更多上下文,请参阅this issue。
https://stackoverflow.com/questions/62244593
复制相似问题