public abstract class FreeMarkerTemplateUtils extends ObjectSE
コンストラクターと説明 |
---|
FreeMarkerTemplateUtils() |
修飾子と型 | メソッドと説明 |
---|---|
static StringSE | processTemplateIntoString(freemarker.template.Template template, ObjectSE model) 指定された FreeMarker テンプレートを指定されたモデルで処理し、結果を指定された Writer に書き込みます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static StringSE processTemplateIntoString(freemarker.template.Template template, ObjectSE model) throws IOExceptionSE, freemarker.template.TemplateException
この方法を使用して、Spring のメールサポートで送信するメールのテキストを準備する場合は、IO/TemplateException を MailPreparationException でラップすることを検討してください。
model
- モデルオブジェクト、通常はキーとしてモデル名を含み、値としてモデルオブジェクトを含むマップ IOExceptionSE
- テンプレートが見つからなかったか、読み取れなかった場合 freemarker.template.TemplateException
- レンダリングに失敗した場合 MailPreparationException