mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Only apply properties to GroovyMarkupConfigurer which are not null
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ public final class GroovyTemplateAutoConfiguration {
|
||||
GroovyMarkupConfigurer groovyMarkupConfigurer(ObjectProvider<MarkupTemplateEngine> templateEngine,
|
||||
Environment environment) {
|
||||
GroovyMarkupConfigurer configurer = new GroovyMarkupConfigurer();
|
||||
PropertyMapper map = PropertyMapper.get();
|
||||
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
||||
map.from(this.properties::isAutoEscape).to(configurer::setAutoEscape);
|
||||
map.from(this.properties::isAutoIndent).to(configurer::setAutoIndent);
|
||||
map.from(this.properties::getAutoIndentString).to(configurer::setAutoIndentString);
|
||||
|
||||
Reference in New Issue
Block a user