メンチカツには醤油でしょ!!

AWS/Java/Node.js/Spreadsheets/Docker/Jenkins/コミュニティ・勉強会レポを主とした技術系ブログ

Thymeleaf

ThymeleafのJava 8 LocalDateTime対応で選択変数式th:objectとth:textの実装方法

Java8のLocalDateTimeをThymeleafで使うには build.gradleにthymeleaf-extras-java8timeを足して@Configurationの付いたクラス(ThymeleafConfigとか)にjava8TimeDialect()を実装してhtmlのth:textでは"${#temporals.format(myDatetime}, 'yyyy/MM/dd HH:mm')…