报错信息:
org.springframework.dao.InvalidDataAccessApiUsageException: Error attempting to get column 'last_login_time' from result set. Cause: java.sql.SQLFeatureNotSupportedException
; null; nested exception is java.sql.SQLFeatureNotSupportedException
Caused by: java.sql.SQLFeatureNotSupportedException: null
报错原因:
java中实体类用到了LocalDateTime类型,在转换时报错,
【Error attempting to get column ‘XXX’ from result set. Cause: java.sql.】
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.10</version>
</dependency>
报错解决办法:
是因为com.alibaba 的版本问题。
切换版本号到1.1.22 以上 即可消除问题
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.1</version>
</dependency>