当我将Java模块化添加到项目中时,就会从单元测试中抛出上述异常。我找不到解决这个问题的办法。$LoadingCache.createEntry(LoadingCache.java:79)抛出:模块java.base不向模块com.google.guice java.lang.IllegalStateException( com.google.guice@4.2.2/com.google.inject.internal.cglib.core.:103) at com.googl
对DI和guice来说是个新手。并为StoreLevelClient创建了一个模块文件,如下所示:
class ServiceModuleClasses must have either one (and only one) constructor annotated with @Inject or a zero-argument cons