IDEA does not compile the xml file of the java directory of src, so the xml file cannot be found in the configuration file of Mybatis

1. Solve the increase under the build tag of pom.xml

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

2. Move the file into the resource folder

Guess you like

Origin blog.csdn.net/qq_39655510/article/details/112239195