项目

一般

简介

v10去掉勾选cdi

由 彭 博 在 超过 3 年 之前添加

问题:

[2021-06-11T10:34:03] [] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=107 _ThreadName=ApusicLogManager] [timeMillis: 1623378843221] [levelValue: 1000] [[

  Exception during lifecycle processing

com.apusic.aas.deployment.common.DeploymentException: CDI deployment failure:WELD-001409: Ambiguous dependencies for type EurekaInstanceConfig with qualifiers @Default

  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public com.netflix.appinfo.ApplicationInfoManager(EurekaInstanceConfig, InstanceInfo, OptionalArgs)

  at com.netflix.appinfo.ApplicationInfoManager.<init>(ApplicationInfoManager.java:84)

  Possible dependencies:

  - Managed Bean [class com.netflix.appinfo.MyDataCenterInstanceConfig] with qualifiers [@Any @Default],

  - Managed Bean [class com.netflix.appinfo.CloudInstanceConfig] with qualifiers [@Any @Default]

解决方案:

部署的时候没去掉CDI beans隐式发现