1
嗨,我有我的GWT应用程序有问题,我有以下错误,虽然我有这个继承:延迟绑定失败的错误 - Ginjector
<inherits name='com.google.gwt.inject.Inject' />
错误:
Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.Injector' (did you forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.mygwtapp.client.Mygwtapp.onModuleLoad(Mygwtapp.java:29)
Mygwtapp。 java的
@Override
public void onModuleLoad() {
final Injector ginjector = GWT.create(Injector.class);
final MainPresenter mainPresenter = ginjector.getMainPresenter();
mainPresenter.bind();
RootPanel.get().add(mainPresenter.getDisplay().asWidget());
logEvent(ginjector.getEventBus());
}
错误与我使用的GWT库。可能与WEB-INF/lib文件夹中的guice库不匹配。干杯。 – xybrek