Skip to content

Commit

Permalink
Set default property match for local-development=false
Browse files Browse the repository at this point in the history
- Configure `@ConditionalOnProperty` to match if missing
- Adjust `viewComponentTemplateResolver` bean definition
  • Loading branch information
tschuehly committed Aug 6, 2024
1 parent ce1e9f0 commit 02a9eea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 02a9eea

Please sign in to comment.