aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-11-24 08:56:22 +0300
committerGravatar Vitaly Takmazov2020-11-24 08:56:49 +0300
commit0ac4d1c73a5d664de2feb677699da37f3a3307de (patch)
tree006a0887160040339e2e55ee972a8d72073bf350 /src/main/java/com/juick
parentc875bace233c958562557faefab14733e62cbca4 (diff)
Bump pebble-spring to 3.1.4
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/config/WebConfig.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/config/WebConfig.java b/src/main/java/com/juick/config/WebConfig.java
index b4f79d2b..ccfa5f1e 100644
--- a/src/main/java/com/juick/config/WebConfig.java
+++ b/src/main/java/com/juick/config/WebConfig.java
@@ -98,7 +98,7 @@ public class WebConfig implements WebMvcConfigurer {
@Bean
public SpringExtension springExtension() {
- return new SpringExtension();
+ return new SpringExtension(null);
}
@Bean
@@ -157,10 +157,9 @@ public class WebConfig implements WebMvcConfigurer {
@Bean
public ViewResolver viewResolver() {
- PebbleViewResolver viewResolver = new PebbleViewResolver();
+ PebbleViewResolver viewResolver = new PebbleViewResolver(pebbleEngine());
viewResolver.setPrefix("templates");
viewResolver.setSuffix(".html");
- viewResolver.setPebbleEngine(pebbleEngine());
viewResolver.setCharacterEncoding(CharEncoding.UTF_8);
return viewResolver;
}