MyBatis version

mybatis 3.5.2 mybatis-plus : com.baomidou mybatis-plus-boot-starter 3.3.0

Database vendor and version

mysql 8.0.5

see https://github.com/baomidou/mybatis-plus/issues/1998

Actual result

WeChatc7d43476ccbce13a3404d8f0e4411422 below is my xml mapper:

WeChata9090b374bce07b6384ad01e4f46310a

please tell me why.

Comment From: harawata

This seems like a mybatis-plus matter. Can you replicate the problem without mybatis-plus?

Comment From: zhangbro

sorry to keep you waiting, I found it seems caused by cache , I'm using redis : MyBatis ClassCastError from LinkedHashMap to my own class type #3.5.2 MyBatis ClassCastError from LinkedHashMap to my own class type #3.5.2

when i first reach this line : everything is fine MyBatis ClassCastError from LinkedHashMap to my own class type #3.5.2

but when i reach this line second time , there are some cached data. MyBatis ClassCastError from LinkedHashMap to my own class type #3.5.2

it might be some improper configs in my project. anyway , thank you .