spring-projects / spring-projects/spring-data-commons

Make Repository available in CDI 4 environment by default

Open
#2,818 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: pending-design-work status: waiting-for-triage
Dominant language
Java
Stars
838
Forks
730
PR merge metrics
No merged PRs in 30d

Description

I remember there is an old issue about this topic, now Jakarta EE 10/CDI 4 is switched to use annotated discovery mode by default to scan beans.

But Spring Data Repository still requires using all discovery mode (the default mode in the legacy CDI 1.x/2.x) to treat Spring Data Repository as CDI beans in a Jakarta container, such as WildFly, Payara, Glassfish etc.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Spring Data Repository types are discovered as CDI beans and compare the CDI 4 annotated mode with the legacy all mode in Jakarta containers. Done means Repository works as a CDI bean by default in CDI 4 environments such as WildFly, Payara, and GlassFish without requiring all discovery mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.