<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>6.0.5</version> </dependency>
报错如下:
Build TableMeta ... Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: Table name pattern can not be NULL or empty. at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:102) at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:210) at com.cn.utils.JFinalGenerator.main(JFinalGenerator.java:48) Caused by: java.sql.SQLException: Table name pattern can not be NULL or empty. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:545) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:513) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:505) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:479) at com.mysql.cj.jdbc.DatabaseMetaData.getTables(DatabaseMetaData.java:3836) at com.mchange.v2.c3p0.impl.NewProxyDatabaseMetaData.getTables(NewProxyDatabaseMetaData.java:2962) at com.jfinal.plugin.activerecord.generator.MetaBuilder.getTablesResultSet(MetaBuilder.java:158) at com.jfinal.plugin.activerecord.generator.MetaBuilder.buildTableNames(MetaBuilder.java:162) at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:94) ... 2 more
protected ResultSet getTablesResultSet() throws SQLException { String schemaPattern = dialect instanceof OracleDialect ? dbMeta.getUserName() : null; return dbMeta.getTables(conn.getCatalog(), schemaPattern, null, new String[]{"TABLE", "VIEW"}); }
报错代码在return处
项目:JFinal