Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupporte

mysql查询报错,检查了语句是没有问题的

2024-06-12 17:04:51.742 ERROR 149792 --- [io-10000-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : 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 'create_time' from result set. Cause: java.sql.SQLFeatureNotSupportedException ; null; nested exception is java.sql.SQLFeatureNotSupportedException] with root cause

字段映射如下
Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupporte_第1张图片

Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupporte_第2张图片
这里依赖冲突
Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupporte_第3张图片
druid版本提高到1.2.6以上,如下
Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupporte_第4张图片
druid版本在1.1.21之前是不支持LocalDataTime等新日期处理方式的,但是Mybatis plus在3.3.1之后是支持的

你可能感兴趣的:(java,开发语言,mybatis)