MyBatis version

3.x.x

Database vendor and version

Mysql 8

Expected result

Is it possible to support mysql8 data type json

Actual result

Is it possible to support mysql8 data type json

Comment From: harawata

In JDBC, there is no JSON type, so it's just a String. It is possible to write a custom type handler. Here is a demo.

Also see the discussions for the same/similar requests: #1326 #1003