目录
简介
mybatis 解析xml文件,主要构造了configuration类.
使用
配置文件
1 |
|
示例代码
1 | public static void main(String[] args) throws FileNotFoundException { |
构造configuration
解析配置文件
1 | public SqlSessionFactory build(InputStream inputStream, String environment, Properties properties) { |
解析mapper
1 | private void mapperElement(XNode parent) throws Exception { |
构建
1 | public void parse() { |
注册mapper
1 |
|