Spring Batch & My Batis: MyBatisBatchItemWriter throws IllegalArgumentException: argument type mismatch

18 views
Skip to first unread message

Aditya Singh

unread,
Oct 13, 2019, 11:50:43 PM10/13/19
to mybatis-user
I had posted a question on stackoverflow.com, but I haven't received any input as of yet.
Please see the link for detailed issue and let me know if it can be resolved or point me in the right direction.

PS: If required I can add the entire question here.

Kazuki Shimizu

unread,
Oct 14, 2019, 12:58:22 AM10/14/19
to mybatis-user
Hi Aditya,

I've replied the your question at Stack Overflow. Please confirm it. Thanks!

Aditya Singh

unread,
Oct 14, 2019, 6:27:31 AM10/14/19
to mybatis-user
Hi Kazuki,

I have added a comment.
Basically, Spring batch's processor will provide a writable model to writer. In the answer, given by you, it is expected to pass a "record" field, which I don't have.
This seems equivalent to Injecting Mapper interface and directly calling insert method on it.
Reply all
Reply to author
Forward
0 new messages