🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 从库中确实有该数据,为啥还报错呢? ``` select order_id, user_id from t_order_1 where user_id=1 ``` ``` ### Error querying database. Cause: com.dangdang.ddframe.rdb.sharding.exception.ShardingJdbcException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 1 ### The error may exist in file [E:\JavaCodeMy\boot-sharding\target\classes\mybatis\OrderMapper.xml] ### The error may involve com.test.mapper.OrderMapper.getOrderListByUserId-Inline ### The error occurred while setting parameters ### SQL: select order_id, user_id from t_order where user_id=? ### Cause: com.dangdang.ddframe.rdb.sharding.exception.ShardingJdbcException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 1] with root cause ```