摘要: velocity 属性引用中的属性查找规则前己提及,属性可以引用到对象的命令. Velocity 会使用合适的策略选择引用到的命令. 它会根据协定的命令命令格式查找. 无论属性引用的的名字是否大小写,Velocity 都有固定的查找规则.如在$customer.address 引用时,查找顺序是:1.getaddress()2.getAddress()3.get("address")4.isAddress()对于VTL中大写的属性名 Address 引用,将是:1.getAddress()2.getaddress()3.get("Address")4.i 阅读全文
posted @ 2012-12-13 20:40 zhwj184 阅读(269) 评论(0) 推荐(0) 编辑