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
- NCP
- dbeaver
- JavaScript
- Kubernetes
- react
- docker
- BPMN
- database
- JPA
- gradle
- nginx
- useEffect
- IntelliJ
- tibero
- Spring
- intellijIDEA
- Java
- kubectl
- LOG4J
- springboot
- nodejs
- mybatis
- Git
- wildfly
- Windows
- gson
- MySQL
- jetbrains
- log4j2
- VSCode
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