Hibernate使用标准的JDBC数据源,因此不需要Hibernate特定的配置。
下面是一个简单的例子使用Spring Hibernate的配置时,应该工作:
<bean id="dataSource" class="oracle.jdbc.pool.OracleDataSource">
<property name="URL"><value><!-- JDBC URL that specifies SSL connection --></value></property>
<!-- other relevant properties, like user and password -->
<property name="connectionProperties>
<value>
oracle.net.ssl_cipher_suites: (ssl_rsa_export_with_rc4_40_md5, ssl_rsa_export_with_des40_cbc_sha)
oracle.net.ssl_client_authentication: false
oracle.net.ssl_version: 3.0
oracle.net.encryption_client: REJECTED
oracle.net.crypto_checksum_client: REJECTED
</value>
</property>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<!-- classes etc -->
</bean>
这种联系已经死了,我相信这是更新的版本:http://www.oracle.com/technetwork/topics/wp-oracle-jdbc-thin- SSL-130128.pdf – Jordan 2015-11-10 22:39:20