Mybatis Plus LocalDateTime - InvalidDataAccessApiUsageException

问题:

1. 业务层 - 根据用户名查找用户信息 - select * from sys_user where username = #{userName}

Mybatis Plus LocalDateTime - InvalidDataAccessApiUsageException

 

 2. 报错

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; 
nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Error attempting to get column 'login_date' from result set.
Cause: java.sql.SQLFeatureNotSupportedException; null; nested exception is java.sql.SQLFeatureNotSupportedException] with root cause

3. 数据库

Mybatis Plus LocalDateTime - InvalidDataAccessApiUsageException

 

解决方案: 提升druid版本

Mybatis Plus LocalDateTime - InvalidDataAccessApiUsageException

 

 改为:

Mybatis Plus LocalDateTime - InvalidDataAccessApiUsageException

 

上一篇:Spring Data JPA问题 (更新、保存时需要加上注解事务------@Transactional)


下一篇:基于kubeadm部署k8s1.80.0