Created
December 10, 2012 14:36
Spring Social spring-servlet.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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