0

I want to use spring mvc to provide some function within current system for some reason. So I want to let it to found the freemarker template from the jar file. Can I set the ftl path as a path in jar? Maybe similar as below:

<bean id="freemarkerConfig"
    class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
    <property name="templateLoaderPath" value="classpath://com.foo.ftl" />
    <property name="freemarkerSettings">
        <props>
            <prop key="defaultEncoding">UTF-8</prop>
        </props>
    </property>
</bean>
Mavlarn
  • 3,807
  • 2
  • 37
  • 57

0 Answers0