017.二级缓存(2)
1.good.xml(flushCache="true"在sql执行完之后强制清空缓存)
<!--flushCache="true"在sql执行完之后强制清空缓存--> <select id="selectGoodsMap" resultType="java.util.LinkedHashMap" flushCache="true"> select g.* , c.category_name,'1' as test from t_goods g , t_category c where g.category_id = c.category_id </select>