@@ -127,7 +127,7 @@ public void testTransaction() {
127127使用 ` @Transactional ` 注解进行事务管理的示例代码如下:
128128
129129``` java
130- @Transactional (propagation = propagation . PROPAGATION_REQUIRED )
130+ @Transactional (propagation = Propagation . REQUIRED )
131131public void aMethod {
132132 // do something
133133 B b = new B ();
@@ -277,7 +277,7 @@ public interface TransactionStatus{
277277
278278``` java
279279Class A {
280- @Transactional (propagation = propagation . xxx)
280+ @Transactional (propagation = Propagation . xxx)
281281 public void aMethod {
282282 // do something
283283 B b = new B ();
@@ -286,7 +286,7 @@ Class A {
286286}
287287
288288Class B {
289- @Transactional (propagation = propagation . xxx)
289+ @Transactional (propagation = Propagation . xxx)
290290 public void bMethod {
291291 // do something
292292 }
@@ -358,7 +358,7 @@ public enum Propagation {
358358
359359``` java
360360Class A {
361- @Transactional (propagation = propagation . PROPAGATION_REQUIRED )
361+ @Transactional (propagation = Propagation . REQUIRED )
362362 public void aMethod {
363363 // do something
364364 B b = new B ();
@@ -367,7 +367,7 @@ Class A {
367367}
368368
369369Class B {
370- @Transactional (propagation = propagation . PROPAGATION_REQUIRED )
370+ @Transactional (propagation = Propagation . REQUIRED )
371371 public void bMethod {
372372 // do something
373373 }
@@ -382,7 +382,7 @@ Class B {
382382
383383``` java
384384Class A {
385- @Transactional (propagation = propagation . PROPAGATION_REQUIRED )
385+ @Transactional (propagation = Propagation . REQUIRED )
386386 public void aMethod {
387387 // do something
388388 B b = new B ();
@@ -391,7 +391,7 @@ Class A {
391391}
392392
393393Class B {
394- @Transactional (propagation = propagation . REQUIRES_NEW )
394+ @Transactional (propagation = Propagation . REQUIRES_NEW )
395395 public void bMethod {
396396 // do something
397397 }
@@ -409,7 +409,7 @@ Class B {
409409
410410``` java
411411Class A {
412- @Transactional (propagation = propagation . PROPAGATION_REQUIRED )
412+ @Transactional (propagation = Propagation . REQUIRED )
413413 public void aMethod {
414414 // do something
415415 B b = new B ();
@@ -418,7 +418,7 @@ Class A {
418418}
419419
420420Class B {
421- @Transactional (propagation = propagation . PROPAGATION_NESTED )
421+ @Transactional (propagation = Propagation . NESTED )
422422 public void bMethod {
423423 // do something
424424 }
0 commit comments