Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Configuração de fonte de dados Oracle para Spring


No context.xml Arquivo:
<bean id="dataSource" class="oracle.jdbc.pool.OracleDataSource">
    <property name="dataSourceName" value="ds"/>
    <property name="URL" value="jdbc:oracle:thin:@<hostname>:<port_num>:<SID>"/>
    <property name="user" value="dummy_user"/>
    <property name="password" value="dummy_pwd"/>
</bean>

Exemplo de URL: jdbc:oracle:thin:@abc.def.ghi.com:1234:TEAM4