用mapper接口发送SQL: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
若想使用mapper接口来执行sql语句,需要将mapper.xml中的<mapper namespace="?">和mapper接口的包名+interface名一致。例子如下
在PersonMapper.xml中的namespace值为对应接口PersonMapper的包名+类名。且在mybatis-config.xml中的<mappers>标签...
原创
2019-02-23 15:50:16 ·
118 阅读 ·
0 评论