title: Upgrade to Spring Boot 2.1.2 from 2.0.6 causes repository errors
body: <p>I tried to upgrade a working application from Spring Boot 2.0.6 to 2.1.2.  I had some troubles with tests after this change, but eventually got around that.  I can successfully build the application from NetBeans (<code>mvn clean install</code>).  However, when I try to run from a command line using <code>mvn spring-boot:run</code>, here is what I get:</p>
  
  <blockquote>
    <hr>
    
    <p>APPLICATION FAILED TO START</p>
    
    <hr>
    
    <p>Description:</p>
    
    <p>The bean 'xxxRepository', defined in null, could not be
    registered. A bean with that name has already been defined in null and
    overriding is disabled.</p>
    
    <p>Action:</p>
    
    <p>Consider renaming one of the beans or enabling overriding by setting
    spring.main.allow-bean-definition-overriding=true</p>
  </blockquote>
  
  <p>The interesting part is that every time I try to run it, the error is on a different repository, but always with the same message.</p>
  
  <p>It would seem that this has to do with <a href="https://github.com/spring-projects/spring-booT/wiki/Spring-Boot-2.1-Release-Notes#bean-overriding" rel="nofollow noreferrer">this change</a>:</p>
  
  <blockquote>
    <p>Bean Overriding</p>
    
    <p>Bean overriding has been disabled by default to prevent a bean being
    accidentally overridden. If you are relying on overriding, you will
    need to set spring.main.allow-bean-definition-overriding to true.</p>
  </blockquote>
  
  <p>Given that it is apparently effecting all my repositories, my guess is that there is a configuration problem somewhere.  I can follow the recommended action, <strong>but it actually made no difference</strong>.  The problem is that I don't know what to change in the configuration to get this working again.  I'm not even sure what to post that is pertinent to the issue.  Any ideas on how to figure this out?</p>