![](https://img.haomeiwen.com/i15506832/4af0edd5c9a4e831.png)
1、首先在pom.xml文件中导入依赖
![](https://img.haomeiwen.com/i15506832/54ed35b934600864.png)
2、配置模板引擎
![](https://img.haomeiwen.com/i15506832/67157dda9ae6e56b.png)
3、在资源文件夹中创建beetl.properties 文件。(苏醒不明白的可以去官网查看,这里附上官网地址:http://ibeetl.com/guide/#beetl)
![](https://img.haomeiwen.com/i15506832/ab45f8260c1d4921.png)
这样子基本上就大功告成了。现在来编写下html界面,使用自定义的定界符来运行一把。
index.html界面。
![](https://img.haomeiwen.com/i15506832/0a0710010c045dcd.png)
运行结果为:
![](https://img.haomeiwen.com/i15506832/252153e48c3cb9db.png)
1、首先在pom.xml文件中导入依赖
2、配置模板引擎
3、在资源文件夹中创建beetl.properties 文件。(苏醒不明白的可以去官网查看,这里附上官网地址:http://ibeetl.com/guide/#beetl)
这样子基本上就大功告成了。现在来编写下html界面,使用自定义的定界符来运行一把。
index.html界面。
运行结果为:
本文标题:Springboot中使用beelt模板
本文链接:https://www.haomeiwen.com/subject/qvafrqtx.html
网友评论