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为类名起别名可以通过别名来代替类名.
posted on 2016-02-05 23:36 LittlePony 阅读(281) 评论(0) 编辑 收藏 举报