diff options
author | Alexander Alexeev | 2016-12-10 21:00:14 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-11 18:24:37 +0300 |
commit | 0cbdc4ecb927b7ab068e5833caefbba65c9aa87a (patch) | |
tree | 284267d6ebcf20e3f6d49e1e272443a55b450444 /juick-spring-www/src/main/java/com/juick/www/configuration | |
parent | a110dea4804dd1011899a909612ba92e2807718a (diff) |
caching date formatter
Diffstat (limited to 'juick-spring-www/src/main/java/com/juick/www/configuration')
-rw-r--r-- | juick-spring-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java | 6 |
1 files changed, 3 insertions, 3 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 9a2bb1d4..2eb39e1c 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 @@ -2,7 +2,7 @@ package com.juick.www.configuration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; -import com.juick.www.formatter.DateFormatter; +import com.juick.www.formatter.SpringDateFormatter; import nz.net.ultraq.thymeleaf.LayoutDialect; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; @@ -122,7 +122,7 @@ public class WwwServletConfiguration extends WebMvcConfigurationSupport { } @Bean - public DateFormatter dateFormatter() { - return new DateFormatter(); + public SpringDateFormatter dateFormatter() { + return new SpringDateFormatter(); } } |