首页> 文章> 详情

mybatis Error attempting to get column 'xx' from result set. Cause: java.sql.SQLFeatureNotSupportedException 【已解决】

教程分享 (407) 2024-04-19 09:39:02

环境:

mybatis plus + druid-spring-boot-starter

错误消息:

Handler-->Error attempting to get column 'orderTime' from result set.  Cause: java.sql.SQLFeatureNotSupportedException

 

导致原因:

druid-spring-boot-starter 版本问问题,当前版本

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid-spring-boot-starter</artifactId>
    <version>1.1.10</version>
</dependency>

 

解决办法:升级版本为 1.1.22

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid-spring-boot-starter</artifactId>
    <version>1.1.22</version>
</dependency>

问题解决

https://www.leftso.com/article/2401310955394678.html

相关文章
mybatis plus 逻辑删除使用说明全局逻辑值配置,application.properties# 逻辑已删除值(默认为 1) mybatis-plus.global-config.db...
mybatis plus starter 3.3.x以内配置分页 @Bean public PaginationInterceptor paginationInterceptor() {...
接上一篇:mybatis Interceptor拦截器实现自定义扩展查询兼容mybatis plus-左搜 (leftso.com)这里进行自定义分页查询扩展,基于mybatis plus,同样...
mybatis plus 自增长主键如何获取注意在model对象里面配置以下注解即可在调用save()方法后通过对象get获取@TableId(type = IdType.AUTO) BigI...
mybatis plus find_in_set 使用wrapper.apply(StrUtil.isNotBlank(clazz)," find_in_set('"+clazz+"',claz...
mybatis Interceptor拦截器实现自定义扩展查询兼容mybatis plus @Intercepts({ @Signature(type = Executor.c...
spring boot mybatis 整合使用讲解介绍,spring boot与MyBatis的使用讲解介绍。spring boot mybatis xml mapper方式的入门和通过一个简...
首先说明一下,配置失效总体原因有两种情况一 情况一 版本问题 版本问题,以前 insert-strategy/ update-strategy是使用0/1/2来标记的,3.1.x以后使用了枚举变...
MyBatis generator 表名/字段名下划线转驼峰,Spring Boot 2.0 整合MyBatis generator 表名/字段名下划线转驼峰 idea上的配置
引言    通过之前spring boot mybatis 整合的讲解: spring boot mybaties整合  (spring boot mybaties 整合 基于Java注解方式写...
导致问题原因mybatisplus在更新某个信息时候,先执行了selectById查询出来了整个对象,然后进行特定属性设置值,最后updateById这个对象。此时就会有个问题,updateTi...
spring boot框架整合MyBatis数据库暂时选用MySQL
MyBatis Insert插入数据返回主键的几种模式支持,包括@Insert注解,mapper.xml sql语句。mybatis insert插入数据返回i
某些情况下,我们使用mybaties时需要使用IN(虽然IN数据多了效率不高,但是少量还是可以用得)条件查询,这时候我们就需要传递参数了,下面是mybaties处理IN条件得参数使用方法首先Ma...