【发布时间】:2019-10-24 12:42:52
【问题描述】:
这是一个spring boot项目,网页由Thymeleaf渲染。当我将 spring-boot-starter-thymeleaf 放入 pom.xml 并启动应用程序时,它试图在其容器中找到所有实现 ViewResolver 的 bean。你在这里看到它找到了thymeleafViewResolver。
我只是好奇 Spring boot 何时以及如何将这个 ThymeleafViewResolver 类放入其 bean 容器中?
【问题讨论】:
标签: spring spring-boot spring-mvc thymeleaf