diff options
author | Vitaly Takmazov | 2023-01-18 20:39:41 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-19 14:30:01 +0300 |
commit | 12e2206f9d24b29c8276b2743603635620643444 (patch) | |
tree | 3af762f3fa6a1ce016df219fb88ab2b394ba35bb /src/main/java/com/juick/config/AppConfig.java | |
parent | 5b0f0bebda5d6369111ae35f8c335324ffa4cc7e (diff) |
RestTemplate -> OkHttpClient
Diffstat (limited to 'src/main/java/com/juick/config/AppConfig.java')
-rw-r--r-- | src/main/java/com/juick/config/AppConfig.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/config/AppConfig.java b/src/main/java/com/juick/config/AppConfig.java index c579c64c..32926bd1 100644 --- a/src/main/java/com/juick/config/AppConfig.java +++ b/src/main/java/com/juick/config/AppConfig.java @@ -34,7 +34,6 @@ import io.pebbletemplates.pebble.loader.Loader; import io.pebbletemplates.spring.extension.SpringExtension; import io.pebbletemplates.spring.servlet.PebbleViewResolver; -import org.apache.commons.codec.CharEncoding; import org.commonmark.ext.autolink.AutolinkExtension; import org.commonmark.node.Link; import org.commonmark.parser.Parser; @@ -49,6 +48,7 @@ import org.springframework.web.servlet.ViewResolver; import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; import org.springframework.web.servlet.resource.ResourceUrlProvider; +import java.nio.charset.StandardCharsets; import java.util.Collections; import javax.inject.Inject; @@ -173,7 +173,7 @@ public class AppConfig { PebbleViewResolver viewResolver = new PebbleViewResolver(pebbleEngine()); viewResolver.setPrefix("templates"); viewResolver.setSuffix(".html"); - viewResolver.setCharacterEncoding(CharEncoding.UTF_8); + viewResolver.setCharacterEncoding(StandardCharsets.UTF_8.name()); viewResolver.setExposeRequestAttributes(true); return viewResolver; } |