
velocity
大树叶
宠辱不惊,看庭前花开花落;去留无意,望天空云卷云舒。
展开
-
Spring 整合 velocity
使用Velocity模板 Velocity是一种针对Java应用的易用的模板语言。Velocity模板中没有任何 Java代码,这使得它能够同时被非开发人员和开发人员轻松地理解。Velocity的用户手册上是这么说的:“Velocity将Java代码从Web 页面中分离出来,使用Web站点从长远看更容易维护,并且提供了一种可行的JavaServer Pages替代解决方案。” 除了原创 2016-07-26 10:59:17 · 573 阅读 · 0 评论 -
spring中的ResourceBundleMessageSource复习
复习下spring中的资源文件,特别是ResourceBundleMessageSource,例子如下 1 首先创建两个资源文件 messages_en_US.properties customer.name=Yong Mook Kim, age : {0}, URL : {1} messages_zh_CN.properties customer.name=\u原创 2016-07-23 17:27:04 · 1119 阅读 · 0 评论 -
RESTEasy hello world example
RESTEasy hello world example http://www.mkyong.com/webservices/jax-rs/resteasy-hello-world-example/ restful paper http://docs.jboss.org/resteasy/docs/2.2.1.GA/userguide/html/Installation_Conf转载 2016-07-26 13:57:02 · 441 阅读 · 0 评论 -
在velocity vm中如何显示java script函数的返回值
#parse("/layout/head.vm") //@parameter: datestr (format: "yyyy-mm-dd") //@return : String ("mm-dd-yyyy") function FormatToUSDate(dateStr) { if(dateStr) {原创 2016-08-04 13:06:39 · 1933 阅读 · 0 评论