Spring Boot / View / Thymeleaf / Install

Spring Boot / View / Thymeleaf / Install

build.gradle に対してこれを書き込む

dependencies {
    implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
}

これで入るやつが Thymeleaf 2 系だというモノもあったが、2.1.0 現在ではこれでインストールされるのは 3系である。

application.yml に mode を書き加えておく。

spring:
  thymeleaf:
    mode: HTML

コレ何がなんだかよくわからないがこれでいいらしい。

java/spring/spring_boot/view/thymeleaf/install.txt · 最終更新: 2021-06-25 19:35 by ore