Answers for "spring boot send username in email html template"

0

spring boot send username in email html template

@Bean 
public FreeMarkerConfigurer freemarkerClassLoaderConfig() {
    Configuration configuration = new Configuration(Configuration.VERSION_2_3_27);
    TemplateLoader templateLoader = new ClassTemplateLoader(this.getClass(), "/mail-templates");
    configuration.setTemplateLoader(templateLoader);
    FreeMarkerConfigurer freeMarkerConfigurer = new FreeMarkerConfigurer();
    freeMarkerConfigurer.setConfiguration(configuration);
    return freeMarkerConfigurer; 
}
Posted by: Guest on June-19-2021

Code answers related to "spring boot send username in email html template"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language