Mybatis中别名的做用

(原创)Mybatis中别名的做用: 在mybatis-config.xml配置别名以下:html <!-- 别名 -->  <typeAliases>   <package name="cn.itcast.core.bean"/>  </typeAliases>java 它的做用是让Mapper.xml中的参数找到对应类,以下面parameterType="TestTb">,若是没有配置别名,则
相关文章
相关标签/搜索