Browse Source

修改实体扫描配置

wwl 4 years ago
parent
commit
3e15ab16d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hzgzpt-admin/src/main/resources/application.yml

+ 1 - 1
hzgzpt-admin/src/main/resources/application.yml

@@ -84,7 +84,7 @@ mybatis-plus:
   # 对应的 XML 文件位置
   mapper-locations: classpath*:mapper/**/*Mapper.xml
   # 实体扫描,多个package用逗号或者分号分隔
-  typeAliasesPackage: com.miaxis.**.domain
+  typeAliasesPackage: com.miaxis.**.domain,com.miaxis.**.dto,com.miaxis.**.vo
   # 针对 typeAliasesPackage,如果配置了该属性,则仅仅会扫描路径下以该类作为父类的域对象
   #typeAliasesSuperType: Class<?>
   # 如果配置了该属性,SqlSessionFactoryBean 会把该包下面的类注册为对应的 TypeHandler