I'm working with Java 8 Date/Time API (JSR-310) on a brand new Spring Boot (1.5) application. Prior the first public release we can stay on tip of every dependencies and that's why I want to clarify the state of JSR-310 handling on the complete Spring Boot stack.
Boot Starter Web - Jackson serialization
Just add jackson-datatype-jsr310
dependency.
But is this really necessary? If so, why is this not included in the standard bundle?
Boot Starter Data - Hibernate persistence
This is where it gets tricky. I have struggling a bit with that, maybe because I'm using PostgreSQL.
Seems like Java 8 compatibility was added to JDBC for version 4.2, which means:
- Use a JDBC 4.2 driver (for PostgreSQL, current is 9.4.1212)
- Override Hibernate version >= 5.2.6, which brings support for JDBC 4.2
Everything works as expected, but as of current (Spring Boot 1.5.2) development status, am I doing OK, is there any preferred way?
Thanks in advance