org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.jsgx.dao.schedu

做项目时,遇到了
org.apache.ibatis.binding.BindingException: 
         Invalid bound statement (not found): com.jsgx.dao.schedu.TemplateDao.getAllTemplates

经过查找发现可能引起错误的原因:

 1. mapper.xml 中  namespace 的路径 或者是 resultType的路径写错了

2. 就是在扫描包时. 如  配置扫描路径为   mapper/*.xml。 而你的mapper目录为   mapper/test/*.xml

没有扫描到你所创建的xml文件


猜你喜欢

转载自blog.csdn.net/qq_34579060/article/details/81016949
今日推荐