<cache />
便可2019-05-20 16:28:16.525 [http-nio-8830-exec-2] DEBUG com.asiainfo.mysql.MysqlMapper - Cache Hit Ratio [com.asiainfo.mysql.MysqlMapper]: 0.5
二級緩存配置:java
<!-- 不使用二級緩存 --> <select id="selectByFields" resulttype="java.util.HashMap" usecache="false"> 不使用一級緩存 flushCache="true" ```</select>