티스토리 뷰

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

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
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