title: Why AuditReader can't be Autowired in the Repository
body: <p>IN my springbootapp I have the following repository:-</p>
  <pre><code>@Repository
  public class RevisionRepository {
  
  private AuditReader auditReader;
  
  public RevisionRepository(AuditReader auditReader) {
      this.auditReader = auditReader;
    }
  }
  </code></pre>
  <p>When I run this app. I got this error:-</p>
  <p>Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  2020-12-24 21:09:15 -</p>
  <hr />
  <p>APPLICATION FAILED TO START</p>
  <hr />
  <p>Description:</p>
  <p>Parameter 0 of constructor in com.howtodoinjava.demo.repository.RevisionRepository required a bean of type 'org.hibernate.envers.AuditReader' that could not be found.</p>
  <p>Action:</p>
  <p>Consider defining a bean of type 'org.hibernate.envers.AuditReader' in your configuration.</p>
  <p>How can I make this work?</p>