Будет ли bean.method() вызывать аннотацию @Transactional, учитывая следующий код?
public interface Iface {
void method();
}
@Component
public class Derived implements Iface {
@Override
@Transactional
public void method() {
// some logic
}
}
@Component
public class SomeComponent {
@Autowired
private Iface bean;
public void someCall() {
bean.method();
}
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... -interface