0

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>

Olaf Kock
  • 46,930
  • 8
  • 59
  • 90

1 Answers1

0

Like this

jdbc:oracle:thin:@example.com:1521:orcl
Vy Do
  • 46,709
  • 59
  • 215
  • 313