Skip to content

Commit 101878e

Browse files
committed
update readme
1 parent e139dda commit 101878e

File tree

9 files changed

+299
-716
lines changed

9 files changed

+299
-716
lines changed

boot-transaction/README.md

Lines changed: 296 additions & 2 deletions
Large diffs are not rendered by default.

boot-transaction/src/main/java/org/boot/transaction/service/DataService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.boot.transaction.service;
22

3-
import java.util.List;
43
import org.boot.transaction.dao.UserRepository;
54
import org.boot.transaction.entity.User;
65
import org.slf4j.Logger;
@@ -78,6 +77,7 @@ public void invokeWithApplicationContext(String user) {
7877

7978
public void invokeWithAop(String user) {
8079
try {
80+
// 需要把@EnableAspectJAutoProxy注解中的(exposeProxy = true)
8181
((DataService) AopContext.currentProxy()).saveAndRollback(user);
8282
} catch (RuntimeException e) {
8383
logger.warn("catch an exception in invokeWithAop()");

boot-transaction/src/main/resources/application.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ spring.jpa.properties.show_sql=true
77
spring.jpa.properties.format_sql=true
88
spring.jpa.properties.use_sql_comments=true
99
spring.h2.console.enabled=true
10-
spring.h2.console.path=/console
10+
spring.h2.console.path=/console
11+
logging.level.org.springframework.orm.jpa=debug

boot-transactional/.gitignore

Lines changed: 0 additions & 31 deletions
This file was deleted.

boot-transactional/README.md

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)