Error attempting to get column ‘create_time’ from result set.
Cause: java.sql.SQLFeatureNotSupportedException
; null; nested exception is java.sql.SQLFeatureNotSupportedException
解决办法:
在pom.xml文件找到:druid连接池的依赖,修改版本为1.1.21
修改后,再次运行,即可成功
原因:集成druid数据源,使用3.1.0之前版本没问题,升级mp到3.1.1+后,运行时报错:java.sql.SQLFeatureNotSupportedException 。mp3.1.1+使用了新版jdbc,LocalDateTime等新日期类型处理方式升级,但druid在1.1.21版本之前不支持
解决方案:
1. 升级druid到1.1.21解决这个问题
2.保持mp版本3.1.0
3.紧跟mp版本,换掉druid数据源
学向勤中得,萤窗万卷书。
——汪洙《勤学》