Invalid bound statement (not found) 找不到mapper 映射文件异常

访问页面报如下错(注意第一行后面的 invalid bound statement (not found))

 

这时候再mapper的pom.xml文件要加如下。 否则该节点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 @ 2018-08-20 16:53  抽象Java  阅读(1466)  评论(0编辑  收藏  举报