<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<typeAliases>
<!-- 动态查询房屋信息的条件类 -->
<typeAlias type="cn.bdqn.mhouse.entity.HouseCondition" alias="houseC"/>
<typeAlias type="cn.bdqn.mhouse.util.Page" alias="page"/>
<!-- 区县别名 -->
<typeAlias type="cn.bdqn.mhouse.entity.District" alias="district"/>
<typeAlias type="cn.bdqn.mhouse.dao.IDistrictDao" alias="districtDao"/>
<!-- 房屋信息的别名 -->
<typeAlias type="cn.bdqn.mhouse.entity.House" alias="house"/>
<typeAlias type="cn.bdqn.mhouse.dao.IHouseDao" alias="houseDao"/>
<!-- 街道信息的别名 -->
<typeAlias type="cn.bdqn.mhouse.entity.Street" alias="street"/>
<typeAlias type="cn.bdqn.mhouse.dao.IStreetDao" alias="streetDao"/>
<!-- 房屋类型的别名 -->
<typeAlias type="cn.bdqn.mhouse.entity.Types" alias="types"/>
<typeAlias type="cn.bdqn.mhouse.dao.ITypesDao" alias="typesDao"/>
<!-- 用户信息的别名 -->
<typeAlias type="cn.bdqn.mhouse.entity.Users" alias="users"/>
<typeAlias type="cn.bdqn.mhouse.dao.IUsersDao" alias="usersDao"/>
</typeAliases>
<environments default="Mysqldevelopment">
<!-- oracle的数据库配置 -->
<environment id="Oracledevelopment">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="oracle.jdbc.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:orcl"/>
<property name="username" value="scott"/>
<property name="password" value="123"/>
</dataSource>
</environment>
<!-- mysql的数据库配置 -->
<environment id="Mysqldevelopment">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://192.168.1.128:3306/house"/>
<property name="username" value="root"/>
<property name="password" value="171268"/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="cn/bdqn/mhouse/dao/DistrictDaoMapper.xml"/>
<mapper resource="cn/bdqn/mhouse/dao/HouseDaoMapper.xml"/>
<mapper resource="cn/bdqn/mhouse/dao/StreetDaoMapper.xml"/>
<mapper resource="cn/bdqn/mhouse/dao/TypesDaoMapper.xml"/>
<mapper resource="cn/bdqn/mhouse/dao/UsersDaoMapper.xml"/>
</mappers>
</configuration>