Could not find resource org/mybatis/example/mybatis-config.xml

mybatis中资源导出失败

首先查看目录正确与否

在pom.xml中
在build中配置resources

<build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>
上一篇:JSON 使用实例_2_Android 读取json文件


下一篇:课程管理之课程信息确认的后端接口