title: Spring boot , transactional works with scheduling
body: <p>As I know Spring Boot generate cglib proxy by default. Moreover , if my method has two annotations that create a proxy , only one of them will work. This is my test class</p>
  <pre><code>@Service
  public class Test{
   
      private final TxnAddressRepository repository;
  
      private final CoinRepository coinRepository;
  
  
     @Transactional
      @Scheduled(fixedDelay = 1000)
      public void test() {
          final TransactionStatus transactionStatus = TransactionAspectSupport.currentTransactionStatus();
          System.out.println(&quot;HERE&quot;);
          this.repository.save(new TxnAddress(coinRepository.getOne(4L), hey.append(&quot;hey&quot;).toString()));
      }
  
  }
  </code></pre>
  <p>But both annotations work for this method , it scheduled each second , and <strong>((DefaultTransactionStatus) transactionStatus).newTransaction</strong> shows me true. (open-session-in-view is disabled)</p>
  <p>Why does it work ? (Spring boot version 2.1.2.RELEASE)</p>