MyBatis--SqlSession概述

SqlSession概述 在 MyBatis 中,SqlSession 是其核心接口。在 MyBatis 中有兩個實現類,DefaultSqlSession 和 SqlSessionManager。java DefaultSqlSession 是單線程使用的,而 SqlSessionManager 在多線程環境下使用。SqlSession 的做用相似於一個 JDBC 中的 Connection 對
相關文章
相關標籤/搜索