dkim18
asked on
DriverManagerDataSource in java spring?
Hi,
Is there a property to designate the database schema name in the datasource config file?
Is it possible to name the schema namehere in the datasource config file?
Right now ,the schema name is in the sql itself:
Is there a property to designate the database schema name in the datasource config file?
Is it possible to name the schema namehere in the datasource config file?
Right now ,the schema name is in the sql itself:
String sql="select * from schema_name.table_name";
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${db2.jdbc.driverClassName}" />
<property name="url" value="${db2.jdbc.url}" />
<property name="username" value="${db2.jdbc.username}" />
<property name="password" value="${db2.jdbc.password}" />
</bean>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.