错误:
org.apache.ibatis.binding.BindingException: Type interface com.xiongluoluo.mapper.DepartmentMapper is not known to the MapperRegistry.
错误原因:
是没有在mybatis配置文件中配置DepartmentMapper.xml文件的位置
解决方法:
在mybatis-config.xml文件中配置上资源文件位置就行
org.apache.ibatis.binding.BindingException: Type interface com.xiongluoluo.mapper.DepartmentMapper is not known to the MapperRegistry.
是没有在mybatis配置文件中配置DepartmentMapper.xml文件的位置
在mybatis-config.xml文件中配置上资源文件位置就行