xml使用
小于 1 分钟
1. 标签语法
2. 常用标签
2.1 foreach标签
<!--
collection可以循环数组、集合
1.数组:外层if标签判断使用 test="typeArray !=null and typeArray.length > 0"
2.集合:外层if标签判断使用 test="typeList !=null and !typeList.isEmpty()"
-->
<foreach collection="typeArray" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
3. 标签转义符
原符号: < <= > >= & ' "
替换符号: < <= > >= & ' "
写法二:
>= <![CDATA[ >= ]]>
<= <![CDATA[ <= ]]>