codingapi / codingapi/tx-lcn

tc springcloud服务引用zipkin启动报错“Field existingConcurrencyStrategy”

Offen
#437 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
4.2k
Forks
1.4k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

- [ ] I have searched the [issues](https://github.com/codingapi/tx-lcn/issues) of this repository and believe that this is not a duplicate.

### 1. Bug Description
tc springcloud服务引用zipkin启动报错“Field existingConcurrencyStrategy”

### 2. Environment:
- JDK version:1.8
- OS:
- TX-LCN version:5.0.2
- Others:

### 3. Exception Stacktrace
Field existingConcurrencyStrategy in org.springframework.cloud.netflix.hystrix.security.HystrixSecurityAutoConfiguration required a single bean, but 2 were found:
- tracingHystrixConcurrencyStrategy: defined in URL [jar:file:/C:/Users/Administrator/.m2/repository/com/codingapi/txlcn/txlcn-tracing/5.0.2.RELEASE/txlcn-tracing-5.0.2.RELEASE.jar!/com/codingapi/txlcn/tracing/http/TracingHystrixConcurrencyStrategy.class]
- sleuthHystrixConcurrencyStrategy: defined by method 'sleuthHystrixConcurrencyStrategy' in class path resource [org/springframework/cloud/sleuth/instrument/hystrix/SleuthHystrixAutoConfiguration.class]

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

```
Paste your Exception Stacktrace here!
```

### 4. Tour Idea

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Reproduziere den Startfehler mit JDK 8, TX-LCN 5.0.2, Spring Cloud und Zipkin. Untersuche zunächst txlcn-tracing's TracingHystrixConcurrencyStrategy zusammen mit Spring Cloud Sleuth's sleuthHystrixConcurrencyStrategy. Als abgeschlossen gilt die Aufgabe, wenn der TC Spring Cloud service ohne den bestehenden existingConcurrencyStrategy bean conflict startet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, spring
Bereich
backend, distributed-systems
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.