4
在我的服务中,我有一个受保护的构造函数@Inject
和其中一个参数(提供程序)@Nullable
。任何想法,为什么我越来越Guice @Nullable annotation
com.google.inject.CreationException: Guice creation errors: 1) No implementation for [[service]] was bound.
? Guice是3.0pre1,@Nullable
是我们的。
@Nullable不以任何方式强制执行,它是给读者或代码分析工具的一个提示。请参阅http://stackoverflow.com/questions/14076296/nullable-annotation-usage – 2015-06-08 16:33:05