freemarker ! 用法

${(user.name)!""} 请注意,是打了()的  也就是它会先判断user是不是为null  在判断user.name 是不是为null 
原文地址:https://www.cnblogs.com/whm-blog/p/7047265.html