Mybatis 使用二级缓存,在命中缓存之后报错 : 原因:spring-boot-devtools的问题,禁用之后正常了(spring-boot-devtools 让类在序列化和反序列化的时候使用了不同的类加载器)。