gpt4 book ai didi

java - 获取 "WELD-001408 Unsatisfied dependencies error when deploying a class injected with an interface"

转载 作者:行者123 更新时间:2023-12-02 00:42:09 27 4
gpt4 key购买 nike

我正在 JUnit4 和 Jboss6 上使用 Arquillian 进行一些单元测试。有一个外观(SomeFacadeclass),其中注入(inject)了“SomeClass”(这是一个接口(interface))。当 Arquillian 部署 test.war 进行测试时,会弹出上述部署错误。我应该怎么做才能解决这个问题?

最佳答案

我猜你的 bean 文件中没有 SomeClass 的实现

关于java - 获取 "WELD-001408 Unsatisfied dependencies error when deploying a class injected with an interface",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6058274/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com