Velocity动态拼接字符串
//定义空的字符串
#set($attrListStr = "")
//遍历一个list来开始拼接
#foreach ($listItem in $!{list})
#set($attrListStr=$attrListStr+$listItem.columnName+",")
#end
输出字符串拼接结果:$!{attrListStr}
//定义空的字符串
#set($attrListStr = "")
//遍历一个list来开始拼接
#foreach ($listItem in $!{list})
#set($attrListStr=$attrListStr+$listItem.columnName+",")
#end
输出字符串拼接结果:$!{attrListStr}