SpringBoot Mybatis 使用LocalDateTime

时间:2023-03-09 04:39:34
SpringBoot Mybatis  使用LocalDateTime
mybatis-spring-boot-starter 2.0.1 会报错,不知道如何解决(建议先不用)
mybatis-spring-boot-starter 2.0.1  - 1.3.2 版本不会报错,也无需加上其他依赖

注意 1.3.2以下版本需要加上

<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-typehandlers-jsr310</artifactId>
<version>1.0.</version>
</dependency>

否则会报错