Invalid bound statement (not found): 异常

来源:互联网 发布:谷歌娘语音软件 编辑:程序博客网 时间:2024/06/07 05:20

错误原因:mapper接口和mapper映射文件没有在同一目录下

解决方案

在dao 工程下添加如下内容 ,如果不添加,此节点, mybatis的mapper.mxl都会被遗落

<build>

<resources>

            <resource>

                <directory>src/main/java</directory>

                <includes>

                    <include>**/*.properties</include>

                    <include>**/*.xml</include>

                </includes>

                <filtering>false</filtering>

      </resource>

        </resources>

</build>


原创粉丝点击