The class com.google.inject.Injector is located in guice library.
To fix the error I added following dependency:
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.1.0</version>
<classifier>no_aop</classifier>
<scope>test</scope>
</dependency>
本文介绍了解决在使用Guice框架时遇到的Injector类找不到的问题。通过添加Guice库依赖,具体版本为4.1.0,并设置其作用域为测试,成功解决了该错误。
7967

被折叠的 条评论
为什么被折叠?



