둘러보기 생략.
 

[참고] Transaction에서 제외하고자 하는 메소드를 설정하는 방법

TableIdGenerationService 클래스의 메소드에 대해서는 트랜잭션에 참여시키지 않겠다고 설정하는
방법 예시입니다. 참고하세요.

<tx:advice id="noTxAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="*" rollback-for="Exception" propagation="NOT_SUPPORTED" />
</tx:attributes>
</tx:advice>

<aop:config>
<aop ointcut id="executionMethods"
expression="execution(* anyframe.core.idgen..impl.TableIdGenerationService.*(..))" />
<aop:advisor advice-ref="noTxAdvice" pointcut-ref="executionMethods" />
</aop:config>