mybatis paging plugin error

After using the paging plug-in, in the query statement, there is a List collection object for loop to obtain the value. org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '__frch_item_0' in 

 

1. The getBoundSql() method in MappedStatement

2. In the DynamicSqlSource class, the called getBoundSql() method

  @Override
  public BoundSql getBoundSql(Object parameterObject) {
    DynamicContext context = new DynamicContext(configuration, parameterObject);
    rootSqlNode.apply(context);
    SqlSourceBuilder sqlSourceParser = new SqlSourceBuilder(configuration);
    Class<?> parameterType = parameterObject == null ? Object.class : parameterObject.getClass();
    SqlSource sqlSource = sqlSourceParser.parse(context.getSql(), parameterType, context.getBindings());
    BoundSql boundSql = sqlSource.getBoundSql(parameterObject);
    for (Map.Entry<String, Object> entry : context.getBindings().entrySet()) {
      boundSql.setAdditionalParameter(entry.getKey(), entry.getValue());
    }
    return boundSql;
  }

 3、...

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326424680&siteId=291194637