http://zy3381.iteye.com/blog/1675328
http://zy3381.iteye.com/blog/1673934
http://lspengjiang.iteye.com/blog/1156836
http://www.cnblogs.com/zhangnanblog/archive/2012/12/29/2838582.html
http://blog.csdn.net/flfna/article/details/4900323
http://haohaoxuexi.iteye.com/blog/1841033
mybatis_config.xml
<typeAliases>
<typeAlias alias="EnvirData" type="com.lopu.bean.system.SysUser" />
</typeAliases>
alias别名 与mapping.xml中的namespace对应
<mapper namespace="EnvirData">
<resultMap type="EnvirData" id="resultEnvirdata">
id与resultMap对应即可
<select id="findById" resultMap="resultEnvirdata" parameterType="int">