问题:Invalid bound statement (not found):......未找到
eg:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ujiuye.mapper.EmployeeMapper.insert
可能原因之一:在Maven:pom.xml文件中未配置build
配置pom.xml作用:是因为xml写到了src/main/java目录中,该目录中文件不会被编译到classpath中,如果想编译到classpath中,请在pom.xml文件中加入以下配置:
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </build>