LoginSignup
0
0

More than 1 year has passed since last update.

備忘録:thymeleafでのlocaldatetimeの扱い

Posted at

localdatetimeの入った変数をそのまま使うと

”2021-06-24T20:23:39.987941”

のように表示されてしまうので、

th:text="*{#temporals.format(date, 'yyyy/MM/dd HH:mm')}"

のように埋め込む

第一引数は
*{date}
ではなく中身だけ書く

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0