在 SpringBoot
项目中引入如下 starter
<dependency>
<groupId>io.github.biezhi</groupId>
<artifactId>spring-boot-starter-jetbrick</artifactId>
<version>0.0.1</version>
</dependency>
application.properties
配置文件
spring.jetbrick.template.enabled=true
spring.jetbrick.template.charset=UTF-8
spring.jetbrick.template.content-type=text/html
spring.jetbrick.template.prefix=templates/
spring.jetbrick.template.suffix=.html