支持通配符扫描任意多个包(无需配置多个包路径),以及防止出现类名重复异常

This commit is contained in:
RuoYi
2019-09-17 20:13:04 +08:00
parent 6dfc2a0a3d
commit d5d2ae1da8
3 changed files with 97 additions and 2 deletions

View File

@ -73,7 +73,7 @@ spring:
# MyBatis
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.ruoyi
typeAliasesPackage: com.ruoyi.**.domain
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件