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文件中少了一段代码

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>
上一篇:DUILIB入门简明教程


下一篇:帝国cms常用变量总结