mybatis-config.xml配置文件

mybatis-config.xml配置文件

<?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>
        <!--这里给实体类取别名,方便在mapper配置文件中使用 简称自动包扫描-->
        <package name="cn.kgc.pojo"/>
    </typeAliases>

    <mappers>
        <package name="cn.kgc.dao"/>
    </mappers>
</configuration>  

猜你喜欢

转载自blog.csdn.net/s20180412/article/details/82834401