Skip to content

Commit 02a9eea

Browse files
committed
Set default property match for local-development=false
- Configure `@ConditionalOnProperty` to match if missing - Adjust `viewComponentTemplateResolver` bean definition
1 parent ce1e9f0 commit 02a9eea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

thymeleaf/src/main/kotlin/de/tschuehly/spring/viewcomponent/thymeleaf/ThymeleafViewComponentAutoConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ThymeleafViewComponentAutoConfiguration {
5858

5959

6060
@Bean
61-
@ConditionalOnProperty("spring.view-component.local-development", havingValue = "false")
61+
@ConditionalOnProperty("spring.view-component.local-development", havingValue = "false", matchIfMissing = true)
6262
fun viewComponentTemplateResolver(viewComponentProperties: ViewComponentProperties): ClassLoaderTemplateResolver {
6363
return ClassLoaderTemplateResolver().also {
6464
configureResolver(it)

0 commit comments

Comments
 (0)