やりたいこと DBへのinsert/update時に登録情報、最終更新情報をコーディング無しで自動更新されるようにする。 entityの日付型はjava8のlocalDatetimeを使用する。 登録/更新者はログイン情報から取得する。 thymeleafをlocalDatetimeに対応させる。 JPAのjava8日付型対応 登録/更新日にjava8日付型を使用したいので設定をします。 Spring Data JPAでは設定をしないと日付型を使用できないようです。 詳しくはコチラ。大変参考になりました。 Spring Boot環境でJava8日付型(JSR-310)を使うための設定 @SpringBootApplication @EntityScan(basePackageClasses = {Application.class, Jsr310JpaConverters.class})