使用springMvc 一开始没使用mapper.xml 用test模块可以测试出数据,使用mapper.xml
后,在test就会报错No MyBatis mapper was found in '[com.hnu.dao]' package. Please check your configuration.
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.hnu.dao.ProjectModuleDao.selectById
mybatis-config.xml 配置啥样的,applicationContext.xml 配置啥样的, 都发出来看看呢?
自定义mapper 接口有吗?类似下面这个: