Invalid bound statement (not found): com.example.managerdemo.mapper.SingleTableMapper.selectAllValuesByConditionsNoPage

 

报Invalid bound statement (not found): com.example.managerdemo.mapper.SingleTableMapper.selectAllValuesByConditionsNoPage

导致Tomcat启动出现Failed to start component [StandardEngine[Catalina].StandardHost[localhost].

原因

因为mapper.xml是写在java目录下的,但是pom文件中少了一段代码

 

里面没有添加

<!-- mapper.xml是放在src/main/java目录下,需配置以下-->
        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <filtering>false</filtering>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>
posted @ 2018-08-20 14:13  無玑小姐  阅读(5106)  评论(0编辑  收藏  举报