Guice.createInjector错误

时间:2013-02-14 10:15:08

标签: eclipse-rcp guice mybatis

我正在尝试在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;)

我做错了什么?

0 个答案:

没有答案