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

配置: 

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

使用:

猜你喜欢

转载自blog.csdn.net/qq_15204179/article/details/83067764