try to fix template resolvers, step 2
This commit is contained in:
parent
7089bd6c42
commit
e8bad4e24e
@ -24,8 +24,10 @@ public class MailTemplateConfiguration {
|
|||||||
|
|
||||||
public ClassLoaderTemplateResolver emailTemplateResolver() {
|
public ClassLoaderTemplateResolver emailTemplateResolver() {
|
||||||
ClassLoaderTemplateResolver emailTemplateResolver = new ClassLoaderTemplateResolver();
|
ClassLoaderTemplateResolver emailTemplateResolver = new ClassLoaderTemplateResolver();
|
||||||
emailTemplateResolver.setPrefix("/mail_templates/");
|
emailTemplateResolver.setPrefix("mail_templates/");
|
||||||
emailTemplateResolver.setTemplateMode("HTML5");
|
emailTemplateResolver.setTemplateMode("HTML5");
|
||||||
|
emailTemplateResolver.setSuffix(".html");
|
||||||
|
emailTemplateResolver.setOrder(1);
|
||||||
emailTemplateResolver.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
emailTemplateResolver.setCharacterEncoding(StandardCharsets.UTF_8.name());
|
||||||
return emailTemplateResolver;
|
return emailTemplateResolver;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user