> For the complete documentation index, see [llms.txt](https://organization-bht.gitbook.io/it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://organization-bht.gitbook.io/it/framework/spring/spring-legacy-project/spring-transactional.md). Agents can also search and read this documentation through its [MCP server](https://organization-bht.gitbook.io/it/~gitbook/mcp).

# Spring Transactional 모듈의 주요 어노테이션

## 1. @Transactional

## 2. @EnableTransactionManagement

* Java Class기반 Spring 설정시 사용하는 어노테이션으로 @Transactional 어노테이션을 활성화 하는 역할을 한다.
* 현재 레거시 스프링은 xml기반이기 때문에 설정할 필요가 없다.
* 예시) class기반 트랜잭션 관리자 설정

```java
@Configuration
@EnableTransactionManagement  // 트랜잭션 어노테이션 활성화
public class TxConfig {

    @Bean
    public PlatformTransactionManager transactionManager(DataSource dataSource) {
        return new DataSourceTransactionManager(dataSource); // JDBC 기반 트랜잭션 매니저
    }
}
```
