Skip to content

Instantly share code, notes, and snippets.

@krams915
Created December 10, 2012 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krams915/4250896 to your computer and use it in GitHub Desktop.
Save krams915/4250896 to your computer and use it in GitHub Desktop.
Spring Social spring-servlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.1.xsd">
<!-- Declare a Thymeleaf resolver -->
<bean id="templateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver"
p:prefix="/WEB-INF/templates/"
p:suffix=".html"
p:templateMode="HTML5"
p:order="1"
p:cacheable="false"
p:templateAliases-ref="templateAliases"/>
<util:map id="templateAliases">
<entry key="connect/facebookConnect" value="facebook/connect"/>
<entry key="connect/twitterConnect" value="twitter/connect"/>
<entry key="connect/facebookConnected" value="facebook/connected"/>
<entry key="connect/twitterConnected" value="twitter/connected"/>
</util:map>
<bean id="templateEngine" class="org.thymeleaf.spring3.SpringTemplateEngine"
p:templateResolver-ref="templateResolver" />
<bean class="org.thymeleaf.spring3.view.ThymeleafViewResolver"
p:templateEngine-ref="templateEngine"/>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment