Joburgess 5 years ago
parent
commit
9729c41976

+ 1 - 1
edu-cms/src/main/java/com/keao/edu/cms/CmsServerApplication.java

@@ -17,7 +17,7 @@ import com.spring4all.swagger.EnableSwagger2Doc;
 @EnableDiscoveryClient
 @EnableFeignClients("com.keao.edu")
 @ComponentScan("com.keao.edu")
-@MapperScan("com.keao.edu.cms.dal.dao")
+@MapperScan({"com.keao.edu.cms.dal.dao", "com.keao.edu.common.dao"})
 @Configuration
 @EnableSwagger2Doc
 public class CmsServerApplication {

+ 2 - 1
edu-cms/src/main/resources/application.yml

@@ -65,7 +65,8 @@ spring:
         min-idle: 1
 
 mybatis:
-    mapperLocations: classpath:config/config/*.xml
+  mapperLocations: classpath*:config/mybatis/*.xml
+  typeAliasesPackage: com.keao.edu.*.entity
     
 swagger:
   base-package: com.keao.edu.cms.controller