mybatis源码解析九之整个加载流程解析加载Reader构造SqlSessionFactoryopenSessiongetMapper调用mapper反射缓存解析crud
demo地址 public static void main(String[] args) throws Exception { Reader reader = Resources.getResourceAsReader("mybatis/SqlMapconfig.xml"); SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(reader);