我正在尝试在eclipse 4 rcp项目中使用mybatis-guice:
injector = Guice.createInjector(new MyBatisModule() {
@Override
protected void initialize() {
install(JdbcHelper.HSQLDB_Embedded);
bindDataSourceProviderType(PooledDataSourceProvider.class);
bindTransactionFactoryType(JdbcTransactionFactory.class);
addMapperClass(UserMapper.class);
Names.bindProperties(binder, createTestProperties());
bind(FooService.class).to(FooServiceMapperImpl.class);
}
});
并获得例外:
java.lang.NoSuchMethodError: org.mybatis.guice.AbstractMyBatisModule.bindInterceptor(Lcom/google/inject/matcher/Matcher;Lcom/google/inject/matcher/Matcher;[Lorg/aopalliance/intercept/MethodInterceptor;)
我做错了什么?