4

When there is a LocalDateTime attribute in Entity, serialization fails when using the repository interface query, and when a single data source is working.

When I only use the following configuration in application.java, it does not work:

@EntityScan (
         BasePackageClasses = {Application.class, Jsr310JpaConverters.class}
)

When I do not use the above configuration, the LocalDateTime property is directly configured with the following configuration, it works:

@Convert (converter = Jsr310JpaConverters.LocalDateConverter.class)

Can anyone help me?

Note: I found a question related to this one, here.

iamdanchiv
  • 4,052
  • 4
  • 37
  • 42
lvhailong
  • 41
  • 4

0 Answers0