不存在类型变量的实例,使 User 符合 List<User>

跟随网络学习,他没出错我出现了问题
问题:
不存在类型变量的实例,使 User 符合 List
public List selectAll() {

    try {
        return queryRunner.query(DbUtils.getConnection(), "select * from ai_user", new BeanHandler(User.class));


    } catch (SQLException e) {
        e.printStackTrace();
    }
    return null;
}

你这个查询结果可能是多条数据,就是集合,不能用一个BeanHandler类呀,要用list,这种的
BeanListHandler beanHandler = new BeanListHandler(User.class);

img