From 02a9eeab03221c21d64792e3efbdfe3443f30339 Mon Sep 17 00:00:00 2001 From: tschuehly Date: Tue, 6 Aug 2024 21:16:54 +0200 Subject: [PATCH] Set default property match for local-development=false - Configure `@ConditionalOnProperty` to match if missing - Adjust `viewComponentTemplateResolver` bean definition --- .../thymeleaf/ThymeleafViewComponentAutoConfiguration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thymeleaf/src/main/kotlin/de/tschuehly/spring/viewcomponent/thymeleaf/ThymeleafViewComponentAutoConfiguration.kt b/thymeleaf/src/main/kotlin/de/tschuehly/spring/viewcomponent/thymeleaf/ThymeleafViewComponentAutoConfiguration.kt index 744c491..8447363 100644 --- a/thymeleaf/src/main/kotlin/de/tschuehly/spring/viewcomponent/thymeleaf/ThymeleafViewComponentAutoConfiguration.kt +++ b/thymeleaf/src/main/kotlin/de/tschuehly/spring/viewcomponent/thymeleaf/ThymeleafViewComponentAutoConfiguration.kt @@ -58,7 +58,7 @@ class ThymeleafViewComponentAutoConfiguration { @Bean - @ConditionalOnProperty("spring.view-component.local-development", havingValue = "false") + @ConditionalOnProperty("spring.view-component.local-development", havingValue = "false", matchIfMissing = true) fun viewComponentTemplateResolver(viewComponentProperties: ViewComponentProperties): ClassLoaderTemplateResolver { return ClassLoaderTemplateResolver().also { configureResolver(it)