FreeMarker template error:
The following has evaluated to null or missing:
==> v.column_default [in template "model/Model.ftl" at line 22, column 117]
Tip: If the failing expression is known to be legally null/missing,
either specify a default value with myOptionalVar!myDefault,
or use <#if myOptionalVar??>when-present<#else>when-missing</#if>.
(These only cover the last step of the expression; to cover the whole expression, use parenthessis:
(myOptionVar.foo)!myDefault, (myOptionVar.foo)??
The failing instruction (FTL stack trace):
----------
==> ${v.column_default} [in template "model/Model.ftl" at line 22, column 115]
----------
在freemarker中的空值的处理,默认情况以${xxx}的方式取值会报错,需要采用${xxx?if_exists} 的方式去处理
${v.column_default?if_exists}
http://www.cnblogs.com/Weagle/p/5417947.html