mybatis出现Invalid bound statement (not found):
出现问题org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xiao.dao.AccountDao.findAllAccount
。
今天写代码出现了这个问题(已经解决)
解决的方案
- 方案一修改
Account.xml
为AccountDao.xml
- 方案二修改映射
mappers
中的表签package
为resource
总结:package标签相比之下更加简便所以,要使用方案一;