thymeleaf / thymeleaf-spring

Thymeleaf integration module for Spring
http://www.thymeleaf.org
Apache License 2.0
435 stars 157 forks source link

NoClassDefFoundError - org/thymeleaf/util/VersionUtils #312

Open booktest10 opened 1 year ago

booktest10 commented 1 year ago

I am getting NoClassDefFoundError VersionUtils with thymeleaf-spring5 from this version onwards 3.0.11.RELEASE.

org.springframework.boot version "2.3.4.RELEASE" implementation('org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE')

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'templateEngine' defined in class path resource [org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration$ThymeleafDefaultConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.thymeleaf.spring5.SpringTemplateEngine]: Factory method 'templateEngine' threw exception; nested exception is java.lang.NoClassDefFoundError: org/thymeleaf/util/VersionUtils

booktest10 commented 1 year ago

image

booktest10 commented 1 year ago

Hi @danielfernandez pls take a look and advice me for the same