Dev/Spring

@Transactional

마이스토리 2020. 4. 16. 12:33

[REQUIRED_NEW 주의사항]

 

Propagation.REQUIRES_NEW does not create a new transaction in Spring with JPA

I have the following scenario. I am using JPA, Spring: @Autowired SampleService service; @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void PerformLogic(

stackoverflow.com

[<tx:annotation-driven>]

 

[Spring 3 - Transaction] 프록시 모드 - 인터페이스와 클래스

스프링의 AOP는 기본적으로 다이내믹 프록시 기법을 이용해 동작한다. 다이내믹 프록시를 적용하려면 인터페이스가 있어야 한다. 인터페이스의 사용은 DI에서도 가장 기본원칙인 만큼 문제 될 것은 없다. 하지만..

springsource.tistory.com