2019-04-18 21:40
@JFina 波总,还的请教个问题,我在用_JFinalDemoGenerator时运行报
Build TableMeta ...
Exception in thread "main" java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:102)
at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:262)
at com.nbgl.common.model._JFinalDemoGenerator.main(_JFinalDemoGenerator.java:51)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:193)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:873)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1167)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1289)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1491)
at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:406)
at com.alibaba.druid.pool.DruidPooledStatement.executeQuery(DruidPooledStatement.java:140)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.buildColumnMetas(MetaBuilder.java:222)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:97)
... 2 more
2019-04-15 15:57
@JFinal 这按说没错吧,我这是jsp, js java改一点都的重启
2019-04-15 15:57
@JFinal me.setDevMode(PropKit.getBoolean("devMode", true));
2019-04-15 15:51
@JFinal 波总, 在用jfinal 时eclipse里jetty-server在那里设置?
2017-12-14 19:07
//配置Oracle驱动
String driver=PropKit.get("oracle.driver");
String url=PropKit.get("oracle.url");
String username=PropKit.get("oracle.username");
String password=PropKit.get("oracle.password");
DruidPlugin dp=new DruidPlugin(url, username, password, driver);
dp. setDriverClass("oracle.jdbc.driver.OracleDriver");
me.add(dp);
ActiveRecordPlugin arp = new ActiveRecordPlugin(dp);
me.add(arp);
// 配置Oracle方言
arp.setDialect(new OracleDialect());
// 配置属性名(字段名)大小写不敏感容器工厂
arp.setContainerFactory(new CaseInsensitiveContainerFactory());
////arp.addMapping("user", "user_id", User.class);