We are using freemarker templates in our spring boot project for email.
There is one default directory in classpath where all base email templates are stored. And, then there are other directories for client's custom email templates.
What we want is that the template loader should first search for a given email template in the client's custom directory, and if not found, then only look into default directory.
Now, I know we can pass multiple paths in FreeMarkerConfigurationFactory setTemplateLoaderPaths(String... templateLoaderPaths). But does this method maintain the lookup order?