snaker-mybatis/src/main/java/org/snaker/engine/access/mybatis/MybatisHelper.java
public static void initialize() {
		InputStream in;
		try {
			in = Resources.getResourceAsStream("mybatis.cfg.xml");
			sqlSessionFactory = new SqlSessionFactoryBuilder().build(in, ConfigHelper.getProperties());
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
public static void initialize() {
		InputStream in;
		try {
			in = Resources.getResourceAsStream("mybatis.cfg.xml");
			sqlSessionFactory = new SqlSessionFactoryBuilder().build(in, ConfigHelper.getProperties());
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
public static void initialize ( ) { InputStream in ; try { in = Resources . getResourceAsStream ( "mybatis.cfg.xml" ) ; sqlSessionFactory = new SqlSessionFactoryBuilder ( ) . build ( in , ConfigHelper . getProperties ( ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
在没有任何sqlSessionFactory注入的情况下，默认使用mybatis.cfg.xml配置初始化
在没有任何sqlSessionFactory注入的情况下，默认使用mybatis . cfg . xml配置初始化