上面是我的依赖,jfinal用的3.5版本,jetty-server用的2018.11版本
15:45:26,430 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
15:45:26,431 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@6d78f375 - Registering current configuration as safe fallback point
2018-10-18 15:45:26 INFO - [main] org.eclipse.jetty.util.log.Log.initialized(192) | Logging initialized @1082ms to org.eclipse.jetty.util.log.Slf4jLog
Exception in thread "main" java.lang.InstantiationError: org.eclipse.jetty.util.component.Container
at org.eclipse.jetty.server.Server.<init>(Server.java:73)
at com.jfinal.server.jetty.JettyServer.doStart(JettyServer.java:92)
at com.jfinal.server.jetty.JettyServer.start(JettyServer.java:69)
at com.jfinal.core.JFinal.start(JFinal.java:160)
at com.sqq.trade.TradeApiApplication.main(TradeApiApplication.java:12)
注意,要使用手动安装的 maven ,不要使用 eclipse 自带的 maven ,避免一些坑