Skip to content

Conversation

@zerovoxxx
Copy link

@zerovoxxx zerovoxxx commented Oct 27, 2025

feat: upgrade slf4j to 2.0.17 for Spring Boot 3.5.0 compatibility

  • Upgrade slf4j-api from 1.7.36 to 2.0.17
  • Upgrade logback from 1.2.13 to 1.4.14 for SLF4J 2.0 support
  • Replace log4j-slf4j-impl with log4j-slf4j2-impl (2.24.3)
  • Implement SLF4J 2.0 new MDCAdapter interface methods:
    • pushByKey: push context value to MDC stack
    • popByKey: pop context value from MDC stack
    • clearDequeByKey: clear all entries in MDC deque
    • getCopyOfDequeByKey: get copy of MDC deque
  • Use reflection to initialize MDC adapter for SLF4J 2.0 compatibility

Breaking Changes:

  • SLF4J 2.0 introduces new MDC API and deprecates some old methods
  • Log4j bridge artifact name changed from log4j-slf4j-impl to log4j-slf4j2-impl

Compatibility:

  • Fully compatible with Spring Boot 3.5.0
  • Fully compatible with JDK 17
  • Aligned with Jakarta EE 10

@github-actions
Copy link

github-actions bot commented Oct 27, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

- Upgrade slf4j-api from 1.7.36 to 2.0.17
- Upgrade logback from 1.2.13 to 1.4.14 for SLF4J 2.0 support
- Replace log4j-slf4j-impl with log4j-slf4j2-impl (2.24.3)
- Implement SLF4J 2.0 new MDCAdapter interface methods:
  - pushByKey: push context value to MDC stack
  - popByKey: pop context value from MDC stack
  - clearDequeByKey: clear all entries in MDC deque
  - getCopyOfDequeByKey: get copy of MDC deque
- Use reflection to initialize MDC adapter for SLF4J 2.0 compatibility

Breaking Changes:
- SLF4J 2.0 introduces new MDC API and deprecates some old methods
- Log4j bridge artifact name changed from log4j-slf4j-impl to log4j-slf4j2-impl

Compatibility:
- Fully compatible with Spring Boot 3.5.0
- Fully compatible with JDK 17
- Aligned with Jakarta EE 10
@zerovoxxx
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@wardseptember wardseptember reopened this Oct 29, 2025
@wardseptember wardseptember merged commit c18183c into trpc-group:JDK17/Springboot3 Oct 29, 2025
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants