错误1
org.apache.ibatis.binding.BindingException: Type interface cn.xsy.dao.DetailMapper is not known to the MapperRegistry.
原因 映射文件没有导入
<mappers>
<mapper resource="mappers/User.xml"/>
<mapper resource="mappers/Orders.xml"/>
</mappers>
错误1
org.apache.ibatis.binding.BindingException: Type interface cn.xsy.dao.DetailMapper is not known to the MapperRegistry.
原因 映射文件没有导入
<mappers>
<mapper resource="mappers/User.xml"/>
<mapper resource="mappers/Orders.xml"/>
</mappers>