1. Mybatis使用代码工作流程 in = Resources.getResourceAsStream("SqlMapConfig.xml"); SqlSessionFactoryBuilder build = new SqlSessionFactoryBuilder(); SqlSessionFactory factory = build.build(in)