title: How to use @Transactional annotation in Spring boot
body: <p>I am working on a spring-boot project. </p>
  
  <p>Before using <code>@Transactional</code> annotation in my project I have two questions </p>
  
  <ol>
  <li><p>Best practice to use <code>@Transactional</code> annotation in spring-boot, service layer or DAO layer?</p></li>
  <li><p>If the service layer then where do I use the <code>@Transactional</code> annotation on a class or on a method in that class?</p></li>
  </ol>