BasicDataSource Support domain name?

53 views Asked by At

Now when customers use BasicDataSource, they want to change the URL connection string to a domain name. Is there a way to support this?

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName">
            <value>oracle.jdbc.driver.OracleDriver</value>
        </property><property name="url">
        <value>jdbc:oracle:thin:@ip:port:orcl</value>
        </property>
</bean>

1

There are 1 answers

0
Vy Do On

Like this

jdbc:oracle:thin:@example.com:1521:orcl