org.jboss.weld.exceptions.deploymentexception将jersy json添加到pom.xml时

wn9m85ua  于 2021-07-03  发布在  Java
关注(0)|答案(1)|浏览(359)

当我尝试添加对json get exception的支持时:

org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InjectionManager] with qualifiers [@Default] at injection point [[BackedAnnotatedParameter] Parameter 2 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jersey.message.filtering.CommonScopeProvider(Configuration, InjectionManager)]
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:403)
.....

我试着用jersey json和jersey media moxy。
当我从pom.xml中删除它时,一切都正常。
编辑:添加jersey-hk2时修复

o0lyfsai

o0lyfsai1#

尝试将此添加到pom.xml

<dependency>
          <groupId>org.glassfish.jersey.core</groupId>
          <artifactId>jersey-server</artifactId>
          <version>2.25.1</version>
      </dependency>

相关问题