Hibernate Slow to Acquire Postgres Connection

前端 未结 6 1635
渐次进展
渐次进展 2020-11-30 20:39

I\'m having a really difficult time debugging this problem. Whenever I try to establish a connection with postgres, it takes a whole minute. After the connection is establis

6条回答
  •  有刺的猬
    2020-11-30 21:20

    I had to also enable hibernate.jdbc.use_get_generated_keys otherwise Identity generation strategy was throwing an exception. Before it was enabled automatically based on metadata received from DB. So my whole solution was to add the following two lines to persistence.xml:

    
    
    

提交回复
热议问题