エンターテイメント!!

遊戯王好きのJavaエンジニアのブログ。バーニングソウルを会得する特訓中。

Thymeleafのパース条件緩和方法

Thymeleafのパースチェックが厳しすぎて、緩和させる方法

環境
maven
SpringBoot
Thymeleaf


①src/main/resources/application.properties に以下を追記
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.cache=false
spring.thymeleaf.encoding=UTF-8

②pomにNekoHTMLを追加する
<dependency>
  <groupId>net.sourceforge.nekohtml</groupId>
  <artifactId>nekohtml</artifactId>
  <version>1.9.22</version>
</dependency>
追加したらビルド



SpringBootでいろいろやってたら、ハマった
もう訳わからんから、パースの条件をゆるくして動かした。