skip to Main Content

Mysql – JdbcBatchItemWriter Error Parameter index out of range

There's an error on using Spring batch JdbcBatchItemWriter. insert into books(order_id, order_no, paid_payment_id) values (:orderId, :orderNo, :paidPaymentId) enter image description here private JdbcBatchItemWriter<BooksEntity> booksWriter() { return new JdbcBatchItemWriterBuilder<BooksEntity>() .itemSqlParameterSourceProvider(new BeanPropertyItemSqlParameterSourceProvider<>()) .dataSource(dataSource) .sql( "insert into books(order_id, order_no, paid_at, paid_payment_id, pay_method, pay_no,…

VIEW QUESTION
Back To Top
Search