mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 23:13:30 +08:00
Polish
This commit is contained in:
parent
155c929316
commit
bae16aad3b
@ -91,8 +91,7 @@ public class InitializrAutoConfiguration {
|
||||
@ConditionalOnMissingBean
|
||||
public TemplateRenderer templateRenderer(Environment environment) {
|
||||
Binder binder = Binder.get(environment);
|
||||
boolean cache = binder.bind("spring.mustache.cache", Boolean.class)
|
||||
.orElseGet(() -> true);
|
||||
boolean cache = binder.bind("spring.mustache.cache", Boolean.class).orElse(true);
|
||||
TemplateRenderer templateRenderer = new TemplateRenderer();
|
||||
templateRenderer.setCache(cache);
|
||||
return templateRenderer;
|
||||
|
Loading…
Reference in New Issue
Block a user