除了REST网络服务,你也可以将Spring WebFlux用于动态HTML内容。Spring WebFlux支持许多的模板技术,包括Thymeleaf、FreeMarker与Mustache。
Spring Boot支持以下模板引擎的自动配置:
FreeMarkerarrow-up-right
Thymeleafarrow-up-right
Mustachearrow-up-right
当你用默认配置使用这些模板引擎时,你的模板会自动从src/main/resources/templates获取。
src/main/resources/templates
最后更新于6年前