typeAliases和package标签的用法

 <typeAliases>
        <!--用于指定别名-->
        <!--<typeAlias type="com.wance.entity.Person" alias="Person"/>-->
        <!--用于指定注册别名的包,当指定后,该包下的实体类都会注册别名,并且类名就是别名,-->
        <!--不再区分大小写-->
        <package name="com.wance.entity"/>
    </typeAliases>

猜你喜欢

转载自blog.csdn.net/Ting1king/article/details/107744791