79522842

Date: 2025-03-20 11:58:13
Score: 2.5
Natty:
Report link

I found solution in Github repo's issues that these problems are caused by DataBaseConfiguration class that configures database, entity manager factory and transaction manager by hand. This is not really supported by Spring Native. So I configured it based on JPA-based builders.

Github Repo: https://github.com/spring-attic/spring-native/issues/1665

DataBaseConfiguration class sample as in solution given in mentioned Github Issues: https://github.com/mhalbritter/spring-native-issue-1665/blob/main/src/main/java/com/a1s/discovery/config/datasource/PersistencePostgresAutoConfiguration.java

This solved my problem.

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Vibhor Verma