天天看点

配置映射文件中使用的类的类型别名typeAliases

配置: 

<!-- 类型别名 -->
	<!-- 配置映射文件中使用的类型别名 -->
	<typeAliases>
		<!-- 给类型 com.igeek.crm.pojo.User取别名user-->
		<typeAlias type="com.igeek.crm.pojo.User" alias="user"/>
		<!-- 配置一个包,让该包中所有的类都是用简称 -->
		<package name="com.igeek.crm.pojo"/>
	</typeAliases>
           

使用:

配置映射文件中使用的类的类型别名typeAliases