【发布时间】:2016-02-05 18:49:41
【问题描述】:
Spring boot 似乎不能很好地与 Thymeleaf 3 beta 配合使用。
java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.security.FallbackWebSecurityAutoConfiguration due to internal class not found.
This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
....
Caused by: java.lang.NoClassDefFoundError: org/thymeleaf/resourceresolver/IResourceResolver
关于如何让它发挥作用的任何想法?
本质上,我已经预先构建了 HTML 模板,这些模板并不真正符合 XHTML 标准,我想将它与 Thymeleaf 一起使用。 Thymeleaf 2 不支持 HTML,甚至 LEGACYHTML5 模式也会由于 Angular 标记而引发错误
所以,我坚持使用仅使用 Thyme2 且不支持 Thyme3 的 Spring Boot,但我的应用程序只能使用 Thyme3
【问题讨论】:
标签: angularjs spring spring-mvc spring-boot thymeleaf