錯誤
mybatis中使用Java8日期LocalDate、LocalDateTime時會出現如下錯誤:
Error attempting to get column ‘hiredate’ from result set. Cause: java.sql.SQLFeatureNotSupportedException
解決辦法
添加Maven依賴:
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-typehandlers-jsr310</artifactId>
<version>1.0.2</version>
</dependency>