解决mybatis | 您所在的位置:网站首页 › mybatis是什么的升级版本 › 解决mybatis |
mybatis-plus 版本不兼容问题
1,mybatis-plus 版本中存在一个问题。 2,mybatis-plus-extension 版本为v3.2.1.1-SNAPSHOT 以上版本时使用其PaginationInterceptor分页插件时。 3,mybatis-plus-core 版本也需要升级到v3.2.1.1-SNAPSHOT以上。 4,因为在PaginationInterceptor类中 此位置使用了mybatis-plus-core包中toolkit/StringUtils工具类中的isNotBlank(),但是低版本中缺乏isNotBlank()方法。 5,会造成使用PaginationInterceptor进行分页时报如下异常: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotBlank(Ljava/lang/CharSequence;)Z 所以在使用PaginationInterceptor分页插件时需要将pom版本更新至v3.2.1.1-SNAPSHOT版本以上 mybatis-plus-core v3.2.1.1-SNAPSHOT mybatis-plus-extension v3.2.1.1-SNAPSHO |
CopyRight 2018-2019 实验室设备网 版权所有 |