Exception in thread "main" java.lang.Abs

Starting JFinal 4.9.03

Starting scanner at interval of 5 seconds

Starting Jetty Server 9.4.12.v20180830 on port: 8080

Exception in thread "main" java.lang.AbstractMethodError: com.jfinal.config.JFinalConfig.configEngine(Lcom/jfinal/template/Engine;)V

at com.jfinal.core.Config.configJFinal(Config.java:60)

at com.jfinal.core.JFinal.init(JFinal.java:61)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:64)

at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:139)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:741)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:374)

at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:847)

at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)

at org.eclipse.jetty.server.Server.start(Server.java:416)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)

at org.eclipse.jetty.server.Server.doStart(Server.java:383)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at com.jfinal.server.jetty.JettyServer.doStart(JettyServer.java:154)

at com.jfinal.server.jetty.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.main(JFinal.java:208)

升级后运行提示这个请问是什么问题

评论区

JFinal

2020-12-07 11:48

新版本的 JFinalConfig 新增了 configEngine(...) 方法,可能是你的老项目中没有添加这个方法

升级注意添加上 configEngine(...) 然后注意在 configConstant(Constants me) 中添加 me.setViewType(老项目中用到的 viewType);

升级文档注意看一下:
https://jfinal.com/doc/14-1

fatefl

2020-12-07 14:48

@JFinal 谢谢,问题已解决

JFinal

2020-12-07 17:56

@fatefl 跨越很多版本升级, 文档一定要过一下,要改动的地方其实很少很少:
https://jfinal.com/doc/14-1

热门反馈

扫码入社