Skip to content

Instantly share code, notes, and snippets.

@vojkny
Created February 26, 2012 01:44
Show Gist options
  • Save vojkny/1912177 to your computer and use it in GitHub Desktop.
Save vojkny/1912177 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
<property name="templateLoaderPath" value="classpath:templates"/>
<property name="freemarkerSettings">
<props>
<prop key="localized_lookup">false</prop>
<prop key="datetime_format">MM/dd/yyyy</prop>
<prop key="number_format">#</prop>
<prop key="whitespace_stripping">true</prop>
<prop key="template_update_delay">0</prop>
</props>
</property>
<property name="freemarkerVariables">
<map>
<entry key="href" value-ref="linkMethod" />
</map>
</property>
</bean>
<bean id="cacheStorage" class="freemarker.cache.NullCacheStorage"/>
<bean id="linkMethod" class="org.maite.templating.LinkMethod" />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment