mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-20 14:56:06 +08:00
启动时加载全部表信息
This commit is contained in:
@@ -46,6 +46,11 @@ public class AutoDDLProcessor implements InitializingBean {
|
||||
}
|
||||
}
|
||||
if (properties.isAutoDdl()) {
|
||||
//加载全部表信息
|
||||
operator.getMetadata()
|
||||
.getCurrentSchema()
|
||||
.loadAllTable();
|
||||
|
||||
List<Class> entities = this.entities.stream().map(EntityInfo::getRealType).collect(Collectors.toList());
|
||||
if (reactive) {
|
||||
Flux.fromIterable(entities)
|
||||
|
||||
Reference in New Issue
Block a user