mybatis reads the configuration file error: Could not find resource configuration.xml

Today, with the idea to compile java project when mybatis, has been an error, you can not find config.xml (Mybatis profile)

Asked a question of the Mother (Baidu oriented programming, Funny)

If the user is idea

Click resouce folder, right, markas select resouce

Another method

In pom.xml, the xml file to be compiled, successfully resolved the problem.

 <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>
Published 53 original articles · won praise 5 · Views 8307

Guess you like

Origin blog.csdn.net/weixin_44494373/article/details/94854149