java类org.springframework.boot.autoconfigure.freemarker.FreeMarkerProperties的实例源码

HttpConfiguration.java 文件源码 项目:emergentmud 阅读 29 收藏 0 点赞 0 评论 0
@Bean
public FreeMarkerConfigurer configureFreemarker() {
    FreeMarkerConfigurer freeMarkerConfigurer = new FreeMarkerConfigurer();
    Properties settings = new Properties();

    settings.setProperty(freemarker.template.Configuration.TEMPLATE_EXCEPTION_HANDLER_KEY, "rethrow");
    freeMarkerConfigurer.setFreemarkerSettings(settings);
    freeMarkerConfigurer.setTemplateLoaderPath(FreeMarkerProperties.DEFAULT_TEMPLATE_LOADER_PATH);

    return freeMarkerConfigurer;
}
FreeMarkerConfigurer.java 文件源码 项目:ogham 阅读 27 收藏 0 点赞 0 评论 0
public FreeMarkerConfigurer(Configuration emailConfiguration, Configuration smsConfiguration, OghamCommonTemplateProperties templateProperties, OghamEmailProperties emailProperties,
        OghamSmsProperties smsProperties, FreeMarkerProperties springProperties) {
    super();
    this.emailConfiguration = emailConfiguration;
    this.smsConfiguration = smsConfiguration;
    this.templateProperties = templateProperties;
    this.emailProperties = emailProperties;
    this.smsProperties = smsProperties;
    this.springProperties = springProperties;
}


问题


面经


文章

微信
公众号

扫码关注公众号