You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ThymeleafDefaultConfiguration is processed first, it'll define the templateEngine bean. When ThymeleafReactiveConfiguration is processed, it too will try to define a bean named templateEngine as the existing templateEngine bean is an ISpringTemplateEngine rather than an ISpringWebFluxTemplateEngine.
We need to move the configurations for the template engine out into a separate class and then import them such that ThymeleafReactiveConfiguration is guaranteed to be processed before ThymeleafDefaultConfiguration. This was already fixed on main as part of 26fecbe. We need to back port those changes to 2.5.x and then merge forwards.
The text was updated successfully, but these errors were encountered:
ThymeleafAutoConfiguration
has two inner-classes that define beans namedtemplateEngine
:spring-boot/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
Lines 133 to 148 in e927cd7
spring-boot/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
Lines 202 to 219 in e927cd7
If
ThymeleafDefaultConfiguration
is processed first, it'll define thetemplateEngine
bean. WhenThymeleafReactiveConfiguration
is processed, it too will try to define a bean namedtemplateEngine
as the existingtemplateEngine
bean is anISpringTemplateEngine
rather than anISpringWebFluxTemplateEngine
.We need to move the configurations for the template engine out into a separate class and then import them such that
ThymeleafReactiveConfiguration
is guaranteed to be processed beforeThymeleafDefaultConfiguration
. This was already fixed on main as part of 26fecbe. We need to back port those changes to 2.5.x and then merge forwards.The text was updated successfully, but these errors were encountered: