Mybatis typeAliases别名

<typeAliases>
		<typeAlias type="com.green.phonemanage.model.CellPhone"
			alias="CellPhone" />
		<typeAlias type="com.green.phonemanage.model.Client" alias="Client" />
		<typeAlias type="com.green.phonemanage.model.User" alias="User" />
		<typeAlias type="com.green.phonemanage.model.SearchForm"
			alias="SearchForm" />
		<typeAlias type="com.green.phonemanage.dao.CellPhoneDao"
			alias="CellPhoneDao" />
		<typeAlias type="com.green.phonemanage.dao.ClientDao" alias="ClientDao" />
		<typeAlias type="com.green.phonemanage.dao.UserDao" alias="UserDao" />
	</typeAliases>

  通过typeAlias为类名起别名可以通过别名来代替类名.

你可能感兴趣的:(Mybatis typeAliases别名)