mybatis:
configuration:
map-underscore-to-camel-case: true #开启驼峰映射
mapper-locations: classpath*:/mapper/**/*Mapper.xml #加载mapper.xml文件
type-aliases-package: com.future.**.model #别名扫描
1.扫描指定的mapper文件
mapper文件的目录结构为:
如果为指定的mapper文件下
请求时异常:BindingException(绑定异常)
修改为:扫描当前目录下的所有.Mapper文件
2.扫描指定文件下的实体类
目录结构:
如果为指定包
运行时报错:不满意的依赖异常
找不到 类
修改为:扫描com.future下的所有model文件下的实体类