java.sql.SQLFeatureNotSupportedException: null
参考网址:
1.springboot不同版本数据库连接驱动版本不一致的问题:https://blog.csdn.net/cxz7456/article/details/105693968
(也是一个问题,但是不适用于我的问题)
2.java.sql.SQLFeatureNotSupportedException问题的解决方法:https://blog.csdn.net/hp961218/article/details/100632991
(思路是对的,但是没能解决我的问题)
1.报错信息:
API Documentation:
Error attempting to get column 'createdstamp' from result set. Cause: java.sql.SQLFeatureNotSupportedException\n; null; nested exception is java.sql.SQLFeatureNotSupportedException
尝试从结果集中获取列“createdstamp”时出错。 原因:java.sql.SQLFeatureNotSupportedException\n; 无效的嵌套异常是java.sql.SQLFeatureNotSupportedException
IDEA :
java.sql.SQLFeatureNotSupportedException: null
2.报错原因:
java中实体类用到了LocalDateTime类型,在转换时报错,【Error attempting to get column ‘XXX’ from result set. Cause: java.sql.】
参考网址:https://blog.csdn.net/weixin_44771582/article/details/113924726
3.报错解决办法:
更改pom依赖:
<dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.22</version> </dependency>
入参:
4.报错出现情况:
根据ID查询数据 输入id出现错误。