Skip to content

引入spring-cloud-starter-bus-amqp后,feignSpringMvcContract方法的ConversionService参数注入问题 #4

@jov1

Description

@jov1

引入venus-cloud-starter-feign正常使用没问题,然后引入消息总线后

org.springframework.cloud
spring-cloud-starter-bus-amqp

启动服务,出现如下提示 ,提示
Description:

Parameter 1 of method feignSpringMvcContract in cn.springcloud.feign.VenusFeignAutoConfig required a single bean, but 2 were found:
- mvcConversionService: defined by method 'mvcConversionService' in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]
- integrationConversionService: defined in null

Action:

Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions