Invalid bound statement (not found): com.bdqn.ssmgj.mapper.DepartmentMapper.insertSelective
如果你的Mybatis映射xml文件是与接口文件放在同一目录下的话,就必须在pom.xml文件中加以上以下配置:
<build>
<resources>
<resource>
<!--指定去哪拷贝-->
<directory>src/main/java</directory>
<includes>
<!--指定拷贝什么文件-->
<include>**/*.xml</include>
</includes>
</resource>
<!--当配置了src/main/java下的就不会拷贝resource下的文件了所以还需要配置一下-->
<resource>
<!--指定去哪拷贝-->
<directory>src/main/resource</directory>
<includes>
<!--指定拷贝什么文件-->
<include>**/*.yml</include>
<include>**/*.propreties</include>
</includes>
</resource>
</resources>
</build>