Tag:Zhang Huimei

  • First level and second level cache of mybatis


    First level cache Mybatis supports caching, but by default, it only turns on level 1 caching, which is only relative to the same sqlsession. Therefore, when the parameters and SQL are exactly the same, we use the same sqlsession object to call a mapper method, and usually execute SQL only once, because after the first […]