}
/**决定传播属性*/
class PropagationStrategy implements TranStrategy<Propagation> {
@Override
public Propagation getStrategy(final Method targetMethod) {
Transactional tranAnno = targetMethod.getAnnotation(Transactional.class);
if (tranAnno == null) {
return Propagation.REQUIRED;//默认设置
}
return tranAnno.propagation();
}