查询的数据不能映射到我的po类,只能显示查询到行数 ,数据显示的为空

来源:互联网 发布:社会支持网络理论ppt 编辑:程序博客网 时间:2024/04/30 01:47

映射文件中

<resultMap id="BaseResultMap" type="cn.java.metime.pojo.VideoinfoCustom" >(直接复制原来逆向工程生成的)

而我的select标签中<select id="findVideoInfoByname1" resultType="VideoinfoCustom">

把<select id="findVideoInfoByname1" resultType="VideoinfoCustom">改为<select id="findVideoInfoByname1" resultMap="BaseResultMap">


原创粉丝点击