dao层接收要返回的是List,在Mapper.xml中用long类型,结果dao层方法报红线,又能运行

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>

long?不是Long吗,可能识别不了long,默认返回数据库字段类型,要想不报错,改成java.lang.Integer就好了