[JAVA-13976] Upgrade Spring Boot to 2.7.2 (#12603)

* [JAVA-13976] Upgrade Spring Boot to 2.7.2

* [JAVA-13976] Fix failing test due to incorrect Jackson version
This commit is contained in:
Haroon Khan
2022-08-22 22:47:32 +05:30
committed by GitHub
parent a20006b451
commit b9789c23f0
43 changed files with 127 additions and 115 deletions
+1 -1
View File
@@ -55,7 +55,7 @@
</build>
<properties>
<mustache.compiler.api.version>0.9.2</mustache.compiler.api.version>
<mustache.compiler.api.version>0.9.10</mustache.compiler.api.version>
<datafactory.version>0.8</datafactory.version>
<webjars.bootstrap.version>3.3.7</webjars.bootstrap.version>
</properties>
@@ -1,12 +1,11 @@
package com.baeldung.springmustache;
import com.samskivert.mustache.DefaultCollector;
import com.samskivert.mustache.Mustache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mustache.MustacheEnvironmentCollector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;
@SpringBootApplication
@ComponentScan(basePackages = {"com.baeldung"})
@@ -17,16 +16,11 @@ public class SpringMustacheApplication {
}
@Bean
public Mustache.Compiler mustacheCompiler(Mustache.TemplateLoader templateLoader, Environment environment) {
MustacheEnvironmentCollector collector = new MustacheEnvironmentCollector();
collector.setEnvironment(environment);
public Mustache.Compiler mustacheCompiler(Mustache.TemplateLoader templateLoader) {
return Mustache.compiler()
.defaultValue("Some Default Value")
.withLoader(templateLoader)
.withCollector(collector);
.withCollector(new DefaultCollector());
}
}