aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/java
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-24 00:24:20 +0700
committerGravatar Vitaly Takmazov2016-11-24 12:05:10 +0300
commitc207b80dd642dd8d5c18340fa5982a3c61ead460 (patch)
tree618827283da96dbf90eb4fca62c0f2f3173f811a /juick-spring-www/src/main/java
parente7fd58f1023ce9e1c9ab880bf27c5c0b2a3cffca (diff)
simple thymeleaf test is added
Diffstat (limited to 'juick-spring-www/src/main/java')
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/juick-spring-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java b/juick-spring-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java
index 089e43a8..5c17897c 100644
--- a/juick-spring-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java
+++ b/juick-spring-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java
@@ -16,6 +16,7 @@ import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import org.springframework.web.servlet.resource.PathResourceResolver;
+import org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect;
import org.thymeleaf.spring4.SpringTemplateEngine;
import org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver;
import org.thymeleaf.spring4.view.ThymeleafViewResolver;
@@ -61,6 +62,8 @@ public class WwwServletConfiguration extends WebMvcConfigurationSupport {
templateEngine.setEnableSpringELCompiler(true);
// Thymeleaf Layout Dialect
templateEngine.addDialect(new LayoutDialect());
+ // Thymeleaf Spring Security integration dialect
+ templateEngine.addDialect(new SpringSecurityDialect());
return templateEngine;
}