Skip to content

Add programmatic configuration tabs in the transactional refdoc#36323

Closed
jisub-dev wants to merge 1 commit intospring-projects:mainfrom
jisub-dev:docs/transaction-java-config
Closed

Add programmatic configuration tabs in the transactional refdoc#36323
jisub-dev wants to merge 1 commit intospring-projects:mainfrom
jisub-dev:docs/transaction-java-config

Conversation

@jisub-dev
Copy link
Contributor

Description

Adds Java Config example alongside existing XML configuration in the @Transactional
annotations section.

Changes:

  • Added Java Config tab showing @EnableTransactionManagement setup
  • Kept existing XML configuration in a separate tab
  • Updated TIP section to explain both approaches

This allows users to choose between modern Java Config and traditional XML
configuration.

Closes #34093

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 13, 2026
@sbrannen sbrannen added the type: documentation A documentation task label Feb 13, 2026
Copy link
Contributor

@sdeleuze sdeleuze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That a good start, please take in account my comments.

Also, there are more samples in this section where a similar update would make sense, could you please handle them as well?

@sdeleuze sdeleuze added in: data Issues in data modules (jdbc, orm, oxm, tx) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 15, 2026
@sdeleuze sdeleuze added this to the 7.0.x milestone Feb 15, 2026
@sdeleuze sdeleuze changed the title Transaction docs: add Java Config tab for @Transactional Add programmatic configuration tabs in the transactional refdoc Feb 15, 2026
- Extract code examples to separate Java, Kotlin, and XML files
- Add Kotlin configuration sample alongside Java
- Change "Java Config" terminology to "Programmatic Configuration"
- Use include-code directive for better maintainability

Addresses review feedback in spring-projectsgh-36323

Signed-off-by: jisub-dev <[email protected]>
@jisub-dev jisub-dev force-pushed the docs/transaction-java-config branch from 78a69c0 to ce3ef46 Compare February 22, 2026 09:24
@eshwar-artyz
Copy link

is this issue still valid?

@sdeleuze
Copy link
Contributor

sdeleuze commented Mar 9, 2026

I think it is, I was on PTO, I will review and potentially merge it shortly.

@sdeleuze sdeleuze modified the milestones: 7.0.x, 7.0.6 Mar 9, 2026
@eshwar-artyz
Copy link

sure look at it and lmk if you need help with anything

sdeleuze pushed a commit to sdeleuze/spring-framework that referenced this pull request Mar 9, 2026
- Extract code examples to separate Java, Kotlin, and XML files
- Add Kotlin configuration sample alongside Java
- Change "Java Config" terminology to "Programmatic Configuration"
- Use include-code directive for better maintainability

See spring-projectsgh-36323
Signed-off-by: jisub-dev <[email protected]>
@sdeleuze sdeleuze closed this in eeddf9a Mar 9, 2026
@sdeleuze
Copy link
Contributor

sdeleuze commented Mar 9, 2026

@jisub-dev Reworked and merged, next time please check your contribution before sending it, it was broken in several ways.

@jisub-dev
Copy link
Contributor Author

Thanks for the review, and for reworking and merging this. I’ll double-check my changes more carefully before submitting next time.

sbrannen added a commit that referenced this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: data Issues in data modules (jdbc, orm, oxm, tx) type: documentation A documentation task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Java config code snippets in transaction management section

5 participants