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

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

原因

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

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

 

里面没有添加

<!-- 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>

相关文章:

  • 2022-01-19
  • 2021-05-14
  • 2021-12-30
  • 2021-08-21
猜你喜欢
  • 2021-07-31
  • 2022-01-02
  • 2021-05-26
  • 2021-05-02
相关资源
相似解决方案