导入中缺少 Guice 多重绑定包
我已经在 IDE 中通过 ivy 获取了 google.inject 包,但是,我没有看到
com.google.inject.multibindings.Multibinder
此处引用的
我想知道 --- 也许在那里我应该从中提取多个 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
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它位于“guice-multibindings”工件中。
mvnrepository 信息
(FWIW,有时这样的信息很简单为了通过下载项目的主要工件并取消存档来发现它,我只是查看了我现有的版本并看到了 jar 文件,然后在 mvnrepository 上搜索“guice”,就在那里。)
It's in the "guice-multibindings" artifact.
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.)