今天发现一个velocity的问题。 如果传入velocity的对象中没有对某一个field有getter setter方法,那么即使那个field是public的,velocity也得不到值。 加上getter settter 方法,就ok了。