influxdata / influxdata/influxdb-client-java

influxdb-spring 7.4.0 is not compatible with Spring Boot 4.x (Actuator package changes)

Offen
#849 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Java
Sterne
477
Forks
129
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Description

The latest `influxdb-spring` version **7.4.0** is currently **not compatible with Spring Boot 4.x**.

Spring Boot 4 introduced breaking changes in Actuator packages.
Some classes were moved from:

org.springframework.boot.actuate.*

to:

org.springframework.boot.health.*

As a result, `influxdb-spring` 7.4.0 fails to compile or run when used together with Spring Boot 4.

---

### Affected versions

- influxdb-spring: **7.4.0**
- Spring Boot: **4.x**

---

### Root cause

Spring Boot 4 refactored Actuator-related packages, for example:

org.springframework.boot.actuate.health.*

➡️

org.springframework.boot.health.*

`influxdb-spring` still references the old Actuator packages, which no longer exist in Spring Boot 4.

---

### Expected behavior

`influxdb-spring` should be able to work with Spring Boot 4, or at least:
- Provide conditional support for both Boot 3.x and Boot 4.x
- Or clearly document that Spring Boot 4 is not supported yet

---

### Proposed solution

I can provide a patch that updates the affected imports and adapts the code to Spring Boot 4's new package structure.

If you are open to it, I’m happy to:
- Submit a PR
- Or discuss the best compatibility strategy (multi-release, conditional class loading, etc.)

---

### Additional context

Spring Boot 4 introduces several breaking changes, and this is one of the blockers when upgrading existing projects that rely on `influxdb-spring`.

Please let me know how you’d like to proceed.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Das Issue identifiziert alte org.springframework.boot.actuate.*-Referenzen in influxdb-spring und die entsprechenden org.springframework.boot.health.*-Pakete in Spring Boot 4. Beginnen Sie damit, diese Referenzen zu lokalisieren und zu prüfen, wie die Abhängigkeiten von Spring Boot 3.x und 4.x gehandhabt werden. Als abgeschlossen gilt die Aufgabe, wenn entweder ein abgestimmter Kompatibilitätsansatz implementiert wurde oder die Einschränkungen der Unterstützung von Spring Boot 4 klar dokumentiert sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, spring-boot
Bereich
backend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

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