Add programmatic configuration tabs in the transactional refdoc#36323
Open
jisub-dev wants to merge 1 commit intospring-projects:mainfrom
Open
Add programmatic configuration tabs in the transactional refdoc#36323jisub-dev wants to merge 1 commit intospring-projects:mainfrom
jisub-dev wants to merge 1 commit intospring-projects:mainfrom
Conversation
Closes spring-projectsgh-34093 Signed-off-by: jisub-dev <kimjiseob1209@gmail.com>
sdeleuze
requested changes
Feb 15, 2026
Contributor
sdeleuze
left a comment
There was a problem hiding this comment.
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?
| In XML configuration, the `<tx:annotation-driven/>` tag provides similar convenience: | ||
| The following examples show the configuration needed to enable annotation-driven transaction management: | ||
|
|
||
| [tabs] |
Contributor
There was a problem hiding this comment.
We we modify code samples, we try to extract them to proper .java, .kt and .xml files, leveraging code inclusion Asciidoctor capabilities. You will fine similar commits referenced in #35446.
Could you please do the same here and also add a Kotlin sample?
| `transactionManager`. If the `TransactionManager` bean that you want to dependency-inject | ||
| has any other name, you have to use the `transaction-manager` attribute, as in the | ||
| preceding example. | ||
| TIP: In Java configuration, the `@EnableTransactionManagement` annotation uses any |
Contributor
There was a problem hiding this comment.
Please use "programmatic configuration" instead of "Java configuration" or "Javaconfig" as we try to make the documentation equally relevant for Java and Kotlin developers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Java Config example alongside existing XML configuration in the
@Transactionalannotations section.
Changes:
@EnableTransactionManagementsetupThis allows users to choose between modern Java Config and traditional XML
configuration.
Closes #34093