diff options
author | 2018-03-27 22:13:16 +0300 | |
---|---|---|
committer | 2018-03-27 22:22:35 +0300 | |
commit | 13237626f3956d93a91a94bee6fee6aa86134a06 (patch) | |
tree | 50634fdfb2fddc924d60be18886184f49b2f7115 /juick-common/src/main/java | |
parent | cc551432bf80e4466b92c42a77a094f31408abeb (diff) |
www: spring boot autoconfigured static resources
+ cache busting using Spring
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r-- | juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java index ff34e370..1c520303 100644 --- a/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java +++ b/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java @@ -36,6 +36,8 @@ import org.springframework.web.multipart.MultipartResolver; import org.springframework.web.multipart.commons.CommonsMultipartResolver; import org.springframework.web.servlet.config.annotation.PathMatchConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; +import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; +import org.springframework.web.servlet.resource.ResourceUrlProvider; import rocks.xmpp.core.session.Extension; import rocks.xmpp.core.session.XmppSessionConfiguration; import rocks.xmpp.core.session.debug.LogbackDebugger; @@ -57,12 +59,10 @@ public class BaseWebConfiguration implements WebMvcConfigurer, SchedulingConfigu configurer.setUseSuffixPatternMatch(false); } - @Override - public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { - MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(jsonMapper()); - converters.add(converter); + @Bean + public ResourceUrlEncodingFilter resourceUrlEncodingFilter() { + return new ResourceUrlEncodingFilter(); } - @Bean public ObjectMapper jsonMapper() { ObjectMapper mapper = new ObjectMapper(); |