freemarker笔记复盘

==freemarker=

https://blog.csdn.net/qq_32392597/article/details/109336893

----------------------------------------------------------有空格

<#list valueObjectList as valueObject>
<#list valueObject?keys as key><#if key!='valueList'&&key!='dimention'&&key!='describe'&&valueObject[key]??>
${key}:${valueObject[key]?string}



-----------------------------------------ok

<#list valueObjectList as valueObject>
<#list valueObject?keys as key><#if key!='valueList'&&key!='dimention'&&key!='describe'&&valueObject[key]??>
${key}:${valueObject[key]?string}




-----------------------------------------ok

<#list valueObjectList as valueObject>
<#list valueObject?keys as key>
<#if key!='valueList'&&key!='dimention'&&key!='describe'&&valueObject[key]??>
${key}:${valueObject[key]?string}




--------------------------------------------------------ok

<#list valueObjectList as valueObject>
<#list valueObject?keys as key>
<#if key!='valueList'&&key!='dimention'&&key!='describe'>
${key}:${valueObject[key]?string}
<#else>




---------------------------------------ok

<#list valueObjectList as valueObject>
<#list valueObject?keys as key>
<#if key=='valueList'||key=='dimention'||key=='describe'>
<#else>
${key}:${valueObject[key]?string}




-----------------------------------------ok

<#list valueObject?keys as key>
<#if key=='valueList'>
<#assign valueList=valueObject[key]/>
<#list valueList as value>
ok:${value}

<#elseif key=='dimention'>
<#assign dimention=valueObject[key]/>
<#list dimention?keys as key>
${key}:${dimention[key]?string}

<#elseif key=='describe'>
describe:${valueObject[key]?string}
<#else>
${key}:${valueObject[key]?string}



你可能感兴趣的:(FreeMarker,java,freemarker)