Spring Boot/Spring Batch 목표 아키텍처 정의 #4

Open
forge-bot wants to merge 8 commits from forge/BAIS-SPRING-ARC-001-attempt-1 into main
Showing only changes of commit 6c663fc839 - Show all commits

View file

@ -0,0 +1,14 @@
package com.example.demo.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration
@EnableTransactionManagement
public class TransactionPolicyConfig {
@Bean
public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
return new JpaTransactionManager(entityManagerFactory);
}
}