Jak skonfigurować źródło danych Spring / Heroku / postgres SSL
Próbuję utworzyć źródło danych z mojej aplikacji Heroku / Spring do bazy postgres.heroku.com postgres. Tutaj jest mójapplicationContext.xml
skrawek.
<bean id="securityDataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="org.postgresql.Driver"/>
<property name="url" value="jdbc:postgresql://url/dstabase"/>
<property name="username" value="user"/>
<property name="password" value="password"/>
</bean>
Ale kiedy uruchamiam aplikację, kocur podaje ten błąd:
Cannot create PoolableConnectionFactory (FATAL: no pg_hba.conf entry for host "10.11.12.13", user "username", database "database", SSL off)
Jak mogę go skonfigurować do korzystania z SSL? Potrzebuję go, aby nawiązać połączenie z postgres.heroku.com