Mybatis從創建到獲取Mapper的源碼分析

mybatis從SqlSessionFactoryBuilder構建SqlSessionFactory,再通過SqlSessionFactory獲取SqlSession,再獲取Mapper對象過程。    1.獲取傳入的xml文件 先調Resources的getResourceAsStream方法,傳入mybatis-config.xml文件 然後調用getResuorceAsStream(Cla
相關文章
相關標籤/搜索