导入中缺少 Guice 多重绑定包

发布于 2024-12-23 17:40:42 字数 673 浏览 0 评论 0原文

我已经在 IDE 中通过 ivy 获取了 google.inject 包,但是,我没有看到

com.google.inject.multibindings.Multibinder

此处引用的

pacakage http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/multibindings/Multibinder.html

我想知道 --- 也许在那里我应该从中提取多个 guice 转发吗?

但是,我确实看到了以下软件包:com.google.inject -> binder/internal/matcher/util

我的常春藤定义:

 <dependency org="com.google.inject" name="guice" rev="3.0" conf="*->*,!javadoc"/>

I have acquired the google.inject package via ivy in my IDE, however, I dont see the pacakage

com.google.inject.multibindings.Multibinder

Which is referenced here

http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/multibindings/Multibinder.html

I'm wondering --- maybe there are multiple guice repost which I should pull from ?

I do, however, see the following packages : com.google.inject -> binder/internal/matcher/util

My ivy definition :

 <dependency org="com.google.inject" name="guice" rev="3.0" conf="*->*,!javadoc"/>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你另情深 2024-12-30 17:40:42

它位于“guice-multibindings”工件中。

<dependency org="com.google.inject.extensions" name="guice-multibindings" rev="3.0"/>

mvnrepository 信息

(FWIW,有时这样的信息很简单为了通过下载项目的主要工件并取消存档来发现它,我只是查看了我现有的版本并看到了 jar 文件,然后在 mvnrepository 上搜索“guice”,就在那里。)

It's in the "guice-multibindings" artifact.

<dependency org="com.google.inject.extensions" name="guice-multibindings" rev="3.0"/>

mvnrepository info

(FWIW, sometimes info like this is easy to discover by downloading a project's main artifact(s) and un-archiving it, I just looked at the version I had laying around and saw the jar file then searched on mvnrepository for "guice", and there it was.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文