set sslmode verify-full and ssl true for jdbc
<property name="serverName" value="${database.hostname}" />
<property name="portNumber" value="5432" />
<property name="databaseName" value="${database.name}" />
+ <property name="ssl" value="true" />
+ <property name="sslmode" value="verify-full" />
</bean>
<bean id="dataSource" class="org.apache.commons.dbcp2.managed.BasicManagedDataSource">
