diff --git a/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java b/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java index 62e351fd..13a9c213 100644 --- a/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java +++ b/src/main/java/com/zzg/mybatis/generator/bridge/MybatisGeneratorBridge.java @@ -69,7 +69,8 @@ public void generate() throws Exception { tableConfig.setDeleteByExampleStatementEnabled(false); tableConfig.setSelectByExampleStatementEnabled(false); } - tableConfig.setCatalog(selectedDatabaseConfig.getSchema()); + + tableConfig.setSchema(selectedDatabaseConfig.getSchema()); // 针对 postgresql 单独配置 if (DbType.valueOf(selectedDatabaseConfig.getDbType()).getDriverClass() == "org.postgresql.Driver") {