私は、春のブートアプリケーションでは、thymeleafメール処理に使用できる2つのテンプレートリゾルバを定義する方法を探しています。私はhtmlテンプレートとテキストテンプレートを持っているので、これが必要です。リッチテキストとプレーンテキストのコンテンツを電子メールに提供するためには両方とも必要です。春の起動時にthymeleaf用の複数のテンプレートリゾルバ
すべての設定は、application.propertiesまたは環境プロパティを使用して行う必要があります。
私は1つのテンプレートリゾルバを定義することができた。誰もが私にヒントを与えるか、私に解決策を検索するための正しい方向を示すことができた場合
spring.thymeleaf.check-template-location=true
spring.thymeleaf.prefix=classpath:/mails/
spring.thymeleaf.excluded-view-names=
spring.thymeleaf.view-names=
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=HTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=true
は、私は喜んでいるだろう。