Invalid bound statement (not found): com.taotao.search.mapper.ItemMapper.getItemList] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.search.mapper.ItemMapper.getItemList
at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:189)
解决方法:在pom.xml里面build中加入
下面展示一些 内联代码片
。
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
这样可以在检测到mapper文件也同时可以检测到配置的一些资源文件比如springmvc等