这是错误:
SQL: SELECT node_id FROM access_layer where member_id IN ( ? , ? , ? , ? , ? , ? )
### Cause: java.lang.UnsupportedOperationException] with root cause
controller的语句:
List<String> sonNodes = accessService.selectByIn(sons);
mapper.xml:
<select id="selectByIn" parameterType="java.util.List" resultType="java.util.List">
SELECT node_id FROM access_layer where member_id IN
<foreach collection="list" item="member_id" index="index" open="(" separator="," close=")">
#{member_id}
</foreach>
</select>
dao:
public List<String> selectByIn(List<String> member_id);
resultType="java.util.List" 直接string 就好了
我不敢果断的告诉你,这是什么原因,最好的方式还是发完整的log出来,
但是我还是有建议给你的,其实可以把resultType换成resultMap,然后用对应的map来写会更合适,