合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
### 从库中确实有该数据,为啥还报错呢? ``` 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 ```