Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/mapper/userMapper.xml

Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/mapper/userMapper.xml

 

 

maven由于他的约定大于配置,我们之后可以能遇到我们写的配置文件,无法被导出或者生效的问题,解决方法:

Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/mapper/userMapper.xml

 

 

 

<build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
    </build>

 

Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/mapper/userMapper.xml

上一篇:uni-app 知识点


下一篇:uni-app添加自定义底部导航栏,实现根据权限动态切换底部栏目的功能