@JFinal 波总,Freemarker的官方给回复了,说不是bug。原文是:This depends on what {{ObjectWrapper}} is used in the {{Configuration}} (and what the root object is, and in your case it's a `HashMap`). Fortunately, the default {{ObjectWrapper}} doesn't do such thing. A pure {{BeansWrapper}} with {{simpleMapWrapper}} set to {{false}} does (because `getClass()` defines a JavaBean property according the JavaBeans Spec.), but that's not a recommended setup.