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