http500,invalid bound statament, can't found selectByExample

 

 

原因:mapper映射文件打包没有到target  》class>...>mapper 》 目录下

 

 

 

 

解决:修改taotao-manager-mapperpom文件

pom文件中添加如下内容:

<!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->

<build>

<resources>

            <resource>

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

                <includes>

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

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

                </includes>

                <filtering>false</filtering>

            </resource>

        </resources>

</build>

posted @ 2017-12-02 22:10  1367356  阅读(57)  评论(0编辑  收藏  举报