MyBatis mapper может возвращать массив Object, но не массив примитивов
, см. Пример ниже: -
@Results({
@Result(property = "id", column = "id"),
@Result(property = "name", column = "name"),
@Result(property = "staffNumber", column = "staff_number")
})
@Select("select * from USERS")
User[] finduserArr();