Skip to content

Commit

Permalink
feat: 트랜잭션을 추상화한 인터페이스 빈으로 등록 #353
Browse files Browse the repository at this point in the history
  • Loading branch information
SongJaeHoonn committed Jun 24, 2024
1 parent e7c35c8 commit 1c4ef98
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/page/clab/api/global/config/TransactionConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package page.clab.api.global.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.support.DefaultTransactionDefinition;

@Configuration
public class TransactionConfig {

@Bean
public TransactionDefinition transactionDefinition(){
return new DefaultTransactionDefinition();
}

}

0 comments on commit 1c4ef98

Please sign in to comment.