dao层接收要返回的是List,在Mapper.xml中用long类型,结果dao层方法报红线,但是,又能运行和从数据库中查询 出来 数据。这是一个什么情况呢?
dao层
public List songList(int songListId);
下面是Mapper.xml
<select id="songList" resultType="long" parameterType="java.lang.Integer">
select song_id from song_list_single where song_list_id = #{songListId}
</select>