Springboot中使用beelt模板

2019-01-03  本文已影响0人  爆米花_29df
项目结构

1、首先在pom.xml文件中导入依赖

beetl依赖

2、配置模板引擎

beetl的自定义配置

3、在资源文件夹中创建beetl.properties 文件。(苏醒不明白的可以去官网查看,这里附上官网地址:http://ibeetl.com/guide/#beetl)

beetl.properties

这样子基本上就大功告成了。现在来编写下html界面,使用自定义的定界符来运行一把。

index.html界面。

index界面

运行结果为:

运行结果
上一篇 下一篇

猜你喜欢

热点阅读