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

Does @DeleteMapping work with Spring Boot?

why is the DELETE query not working for me. @DeleteMapping("/delete") public String deleteUser(@RequestParam("userId") long id) { userService.deleteUser(id); return "redirect:/"; } There is a form for this mapping, but it returns me the Request method 'GET' is not supported. <form th:object="${users}">…

VIEW QUESTION

Postgresql – Spring-boot testcontainers in 3.1 for specific version of Postgres

The new release of spring-boot 3.1 added support for managing testcontainers when running your app in development: https://docs.spring.io/spring-boot/docs/3.1.0-SNAPSHOT/reference/html/features.html#features.testing.testcontainers.at-development-time. I'm attempting to get it to work with the specific postgres version I'm using for my project, but I'm running into issues.…

VIEW QUESTION
Back To Top
Search