Caused by: org.apache.ibatis.binding.BindingException: Type interface cn.daqiang.dao.orderMapper is already known to the MapperRegistry.
<mappers>
<mapper resource="UserMapper.xml"></mapper>
<mapper resource="orderMapper.xml"></mapper>
<package name="cn.daqiang."/></mappers><!--指定接口所在的包-->
在这个 sql的配置文件中,mappers下面的两个参数分别时两种不同的加载方式,方式二的范围把方式一的覆盖了,所以报上面的错误,而且package方式的最小指定范围时包不能指定类。