title: How do I specify multiple templateLoaderPaths for Freemarker in Spring Boot?
body: <p>I need to specify multiple template loader paths for FreeMarker in a Spring Boot web application but the <a href="https://github.com/spring-projects/spring-boot/blob/v1.1.2.RELEASE/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfiguration.java" rel="nofollow"><code>FreeMarkerAutoConfigurationClass</code></a> only let me specify one path using the <a href="http://docs.spring.io/spring-boot/docs/1.1.2.RELEASE/reference/html/common-application-properties.html" rel="nofollow"><code>spring.freemarker.templateLoaderPath</code></a> property, which uses the <code>setTemplateLoaderPath</code> method in the <code>FreeMarkerConfigurationFactory</code>. However, this class allows me to set multiple path using the <code>setTemplateLoaderPaths</code> method. Which is the best way to override this auto-configuration class and specify multiple loader paths? I don't really understand well the Spring Java config classes and I want an example for this before write the code I need. I'm using Spring Boot 1.1.2. Thanks in advance.</p>