myBatis配置总结

发布于 2021-06-04  48 次阅读


1.pom.xml文件中的build标签下添加:

  <resources>
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.xml</include>
            </includes>
        </resource>
    </resources>

2.添加映射文件;

3.添加mybatis的主配置文件;