Transactions, Spring.
put the same annotation on a class to override the transaction setting of interface: @Service @Transactional public class PaymentServiceImpl implements PaymentService { @Override public void pay(String source, String destination, double val) { // … } } Finally, we can override all of this by