ibatis数据库连接配置

1.创建数据库配置文件
sqlMapConfig.propeties
driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@192.168.24.136:1521:jdbc
username=xxxx
password=xxxx

2.sqlMapConfig.xml
<property resource="sqlMapconfig.properties">
	<transactionManager type="JDBC" commitRequired="false">
		<datasource type="dbcp">
			<property name="driverclassname" value="${driverclassname}"/>
			<property name="jdbcUrl" value="${url}"/>
			<property name="user" value="${user}"/>
			<property name="password" value="${password}"/>
		</datasource>
		 	
	</transcationManager>		 
</property>
	 


你可能感兴趣的:(oracle,数据库,ibatis,jdbc,user,url)