spring boot 使用velocity模板
来源:互联网 发布:网络运维工程师招聘 编辑:程序博客网 时间:2024/06/06 01:33
(不要使用这种模板了,spring boot最新版已经不支持了。使用FreeMarker吧:http://blog.csdn.net/clementad/article/details/51942629)
简单几步,在spring boot中使用velocity模板生成文本:
2、resources中创建templates目录
3、创建.vm模板文件welcome.vm:
4、使用模板,测试用例:
5、测试结果:
附:
velocity语法参考:http://velocity.apache.org/engine/devel/vtl-reference.html
源代码参考:https://github.com/xujijun/my-spring-boot
阅读全文
0 0
- spring boot 使用velocity模板
- spring boot 使用velocity模板
- 关于spring boot使用velocity作为视图层模板
- Spring boot配置freemarker,jsp,velocity模板
- Spring中使用Velocity模板
- spring boot 使用velocity、freeMarker模板创建html页面返回给前端
- spring boot关联velocity
- spring boot 使用FreeMarker模板
- spring-boot--使用thymeleaf模板
- spring-boot--使用thymeleaf模板
- Spring Boot使用thymeleaf模板
- spring-boot--使用thymeleaf模板
- spring boot 使用FreeMarker模板
- spring-boot--使用thymeleaf模板
- spring boot使用thymeleaf模板
- spring-boot--使用thymeleaf模板
- Spring Boot 使用 Thymeleaf模板
- spring-boot--使用thymeleaf模板
- Eclipse下导入外部jar包的3种方式
- spring支持五种事务隔离和六种事务传播属性
- java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
- 数组和运算符简介
- 妙趣横生:aspx删除数据
- spring boot 使用velocity模板
- 数据挖掘之集成学习
- MarginTop 为何影响父元素的 MarginTop
- haproxy
- HDU-2191 珍惜现在,感恩生活(多重背包,二进制优化)
- anjularJs学习(一)基础知识及$http和$q服务
- HDOJ HDU 1110 Equipment Box
- Python核心编程v2.0 第12章习题答案
- linux中开机自动启动服务的三种方式