异常:Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.q
程序报错:Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.qbb.srb.core.mapper.DictMapper.batchInsert
今天使用mybatis出现了,第一反应是没扫描mapper包,然后去查看发现我写了.mapper目录结构如下
然后打开target-->classes查看我的xml文件根本没编译到mapper包中
解决办法:在pom.xml中加入如下的配置即可
src/main/java
**/*.xml
false