org.apache.ibatis.binding.BindingException: Type interface com.Mapper.dao.PersonMapper is not known to the MapperRegistry.
at org.apache.ibatis.binding.MapperRegistry.getMapper(MapperRegistry.java:47)
错误原因可能在 Batis config.xml忘记映射你的Mapper.xml
方法:在 <mappers>中映射你的sql
<!-- mappers 将sql映射到全局配置中 -->
<mappers>
<mapper resource="EmployeeMapper.xml" />
<mapper resource="DepartmentMapper.xml" />
</mappers>