<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.11.0.xsd">
<generator>
<database>
<includes>.*</includes>
<excludes>
UNUSED_TABLE # This table (unqualified name) should not be generated
| PREFIX_.* # Objects with a given prefix should not be generated
| SECRET_SCHEMA\.SECRET_TABLE # This table (qualified name) should not be generated
| SECRET_ROUTINE # This routine (unqualified name) ...
</excludes>
</database>
</generator>
</configuration>
# 1 楼答案
使用独立XML文件中的jOOQ生成器配置或Maven
pom.xml
中的内联配置,配置的相关部分可能如下所示:有关编程配置或通过Gradle配置的更多详细信息或示例,请参阅手册:https://www.jooq.org/doc/latest/manual/code-generation/codegen-advanced/codegen-config-database/codegen-database-includes-excludes/