SpringBoot整合模板引擎过程代码实例

上传:qqstrategy55120 浏览: 24 推荐: 0 文件:pdf 大小:51.63 KB 上传时间:2021-05-18 18:20:57 版权申诉

  1.引入freemarker模板依赖:  2.配置application.properties:  3.在resources目录下建个目录叫templates,在这个目录下新建一个以.ftl结尾的文件,并且将html代码复制进去,在controller层返回这个视图  1.引入thymeleaf模板依赖  2.配置application.properties:  3.在resoureces下新建个目录templates在里面编写html文件,具体的thymeleaf标签语法这里就不做介绍了。

上传资源
用户评论