@Override protected void postProcessTemplateLoaders(List<TemplateLoader> templateLoaders){
  templateLoaders.add(new ClassTemplateLoader(FreeMarkerConfigurer.class,""));
  logger.info("ClassTemplateLoader for Spring macros added to FreeMarker configuration");
}

@ Override protected void postProcessTemplateLoaders ( List < TemplateLoader > templateLoaders ) { templateLoaders . add ( new ClassTemplateLoader ( FreeMarkerConfigurer . class , "" ) ) ; logger . info ( "ClassTemplateLoader for Spring macros added to FreeMarker configuration" ) ; }
this implementation registers an additional classtemplateloader for the spring - provided macros , added to the end of the list .
