Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Windows
- nginx
- react
- database
- docker
- tibero
- kubectl
- VSCode
- mybatis
- BPMN
- IntelliJ
- Git
- log4j2
- Java
- dbeaver
- springboot
- useEffect
- Kubernetes
- intellijIDEA
- MySQL
- NCP
- gradle
- wildfly
- jetbrains
- nodejs
- JPA
- LOG4J
- Spring
- gson
- JavaScript
Archives
- Today
- Total
두 손끝의 창조자
DummyTransactionManager 본문
class DummyTransactionManager implements PlatformTransactionManager {
SimpleTransactionStatus transactionStatus = new SimpleTransactionStatus(true);
@Override
public TransactionStatus getTransaction(TransactionDefinition definition) throws TransactionException {
if (transactionStatus.isCompleted()) {
transactionStatus = new SimpleTransactionStatus(true);
}
return transactionStatus;
}
@Override
public void commit(TransactionStatus status) throws TransactionException {
transactionStatus.setCompleted();
}
@Override
public void rollback(TransactionStatus status) throws TransactionException {
transactionStatus.setCompleted();
}
}
반응형
Comments