使用分页插件后,在查询语句,有List集合对象for循环获取值时。org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '__frch_item_0' in
1、在MappedStatement中的getBoundSql()方法
2、在DynamicSqlSource类中,被调用的getBoundSql()方法
@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、...