JFinal

登录 注册

波总,您好,请问一下,我用eclipse 开发jfinal时,jsp js java类每次修改都需要重启,有啥解决办法没

波总,您好,请问一下,我用eclipse 开发jfinal时,jsp js java类每次修改都需要重启,有啥解决办法没

评论

  • 04-14 22:01
    jsp js 这两类文件是天然不需要重启的

    java 类每次修改在 jfinal 下开发时也不需要重启,关键你要用好 jfinal-undertow 或者 jetty-server 这两个 jfinal 整合的开发项目

    注意要配置:
    me.setDevMode(true) 才支持 Java 类的热加载
  • 04-15 15:51
    @JFinal 波总, 在用jfinal 时eclipse里jetty-server在那里设置?
  • 04-15 15:57
    @JFinal me.setDevMode(PropKit.getBoolean("devMode", true));
  • 04-15 15:57
    @JFinal 这按说没错吧,我这是jsp, js java改一点都的重启
  • 04-15 16:38
    @xwt 重启是你自己重启的还是 jetty-server 自己自动重启的?
  • 04-15 16:38
    jetty-server 在改动 java 代码后会自动重启 web , 但 JVM 本身并不会重启
  • 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
  • 04-18 21:41
    @JFinal 这是啥原因
  • 04-18 22:34
    generator.setDialect(new OracleDialect());
  • 发送