java.sql.SQLFeatureNotSupportedException; null; nested exception is java.sql.SQLFeatureNotSupportedE

org.springframework.dao.InvalidDataAccessApiUsageException: Error attempting to get column 'createtime' from result set.  Cause: java.sql.SQLFeatureNotSupportedException
; null; nested exception is java.sql.SQLFeatureNotSupportedException] with root cause

java.sql.SQLFeatureNotSupportedException: null
    at com.alibaba.druid.pool.DruidPooledResultSet.getObject(DruidPooledResultSet.java:1771) ~[druid-1.1.10.jar:1.1.10]
    at org.apache.ibatis.type.LocalDateTimeTypeHandler.getNullableResult(LocalDateTimeTypeHandler.java:38) ~[mybatis-3.5.1.jar:3.5.1]

该错误是由于版本不一致导致的,druid版本从1.1.10提升到1.1.21就OK了

mybatis-plus-generator 3.1.1内置的mybatis3.5.1
druid-spring-boot-starter 1.1.21
mysql-connector-java 8.0.18

 

你可能感兴趣的:(mybatis)