报错:
Caused by: org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column ‘create_date’ from result set. Cause: java.sql.SQLException: Error
; uncategorized SQLException; SQL state [null]; error code [0]; Error; nested exception is java.sql.SQLException: Error
原因:数据库里的字段类型是dateTime,用MyBatis-plus生成的实体类型时LocalDateTime。
解决办法:将实体类型改为Date