Created
December 20, 2013 08:02
-
-
Save yanhua365/8051724 to your computer and use it in GitHub Desktop.
FreeMarker提示使用了空(null)变量,并提示了正确的使用方法。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment