MyBatis automatically generate code error java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger
The following error sometimes occurs when we use mybatis code generation tools:
java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger
This time mysql version we first see the next in our maven plugin is:
then look at the next version of our mysql:
Then our maven in the changed version of the same as above, for example, I have here is that 8.0.12 maven version is 5.1.12 version was changed, and then we re-run our code generation plug-in to normal.