<!--理论加实践,才是架构师嘚最佳实践 -->
<!--JDBC Data Source -->
< bean id= "testdataSource"
class= "org.springframework.jdbc.datasource.DriverManagerDataSource" >
< property name= "driverClassName" value ="oracle.jdbc.driver.OracleDriver" />
<!-- <property name=" url"
value="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
/> -->
< property name= "url" value ="jdbc:oracle:thin:@192.168.137.101:1521:ora92" />
< property name= "username" value = "sale" />
< property name= "password" value = "sale" />
</ bean>
< bean id= "sqlSessionFactory" class ="org.mybatis.spring.SqlSessionFactoryBean" >
< property name= "dataSource" ref = "testdataSource" />
< property name= "mapperLocations" >
< list>
< value> classpath:com/etrading /mapping/**/*Mapper.xml</ value >
</ list>
</ property>
<!-- <property name="typeAliasesPackage"
value="com.nicchagil.mybatis3spring3intg.bean"
/> -->
</ bean>
< bean class= "org.mybatis.spring.mapper.MapperScannerConfigurer" >
< property name= "basePackage"
value= "com/etrading/mapping/common;com/etrading/mapping/account" />
< property name= "sqlSessionFactoryBeanName" value= "sqlSessionFactory" />
</ bean>