dict
This commit is contained in:
+5
-1
@@ -111,9 +111,13 @@ public class YudaoMybatisAutoConfiguration {
|
||||
GlobalConfig globalConfig = new GlobalConfig();
|
||||
GlobalConfig.DbConfig dbConfig = new GlobalConfig.DbConfig();
|
||||
dbConfig.setIdType(IdType.AUTO);
|
||||
log.error("dbConfig:{}",dbConfig);
|
||||
globalConfig.setDbConfig(dbConfig);
|
||||
globalConfig.setMetaObjectHandler(defaultMetaObjectHandler());
|
||||
Resource[] resources = new PathMatchingResourcePatternResolver().getResources("classpath*:/mapper/*/*.xml");
|
||||
Arrays.stream(resources).forEach(resource -> {
|
||||
log.info("master mapper:{}",resource.getFilename());
|
||||
});
|
||||
factory.setMapperLocations(resources);
|
||||
factory.setPlugins(mybatisPlusInterceptor());
|
||||
factory.setGlobalConfig(globalConfig);
|
||||
return factory.getObject();
|
||||
|
||||
Reference in New Issue
Block a user