vendredi 13 mars 2015

org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean Template not found

Now I am trying to load the FreeMarker from the dependency jar and my config file is :



<bean id="freemarkerConfiguration" class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean">
<property name="templateLoaderPath" value="classpath*:/mailer_templates" />
</bean>


But I got this error :



java.io.FileNotFoundException: Template "test.ftl" not found.
at freemarker.template.Configuration.getTemplate(Configuration.java:742)
at freemarker.template.Configuration.getTemplate(Configuration.java:681)


I can`t move the template files from dependency jar to the current project dir.Is there any solutions ?


thanks in advance


Aucun commentaire:

Enregistrer un commentaire