title: Unsatisfied dependency expressed through constructor parameter 2
body: <p>I upgraded spring from version 2.1.1 to 2.2.0 .
  Since then I'm facing the following error when I start my app : 
  Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'ParentService' available: expected single matching bean but found 2: MasterService,SlaveService .</p>
  
  <p>ParentService is an interface : </p>
  
  <pre><code>public interface ParentService{
  ..
  }
  </code></pre>
  
  <p>MasterService : </p>
  
  <pre><code>@Service
  @MasterProfile
  public class MasterService implements ParentService{
  .....
  }
  </code></pre>
  
  <p>SlaveService : </p>
  
  <pre><code>@Service
  @SlaveProfile
  public class SlaveService implements ParentService{
  .....
  }
  </code></pre>
  
  <p>MasterProfile annotation : </p>
  
  <pre><code>@Profile("MASTER")
  public @interface MasterProfile {
  
  }
  </code></pre>
  
  <p>Slave Profile : </p>
  
  <pre><code>@Profile("SLAVE")
  public @interface SlaveProfile{
  
  }
  </code></pre>
  
  <p>I'm passing to my app the profile with the following flag : </p>
  
  <pre><code>-Dspring.profiles.include=MASTER
  </code></pre>
  
  <p><strong>According to <a href="https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.2-Release-Notes" rel="nofollow noreferrer">Spring 2.2 release notes</a>, they have done some changes and forks are enabled by default in maven. As a result the only way to pass params is with the parameter <code>-Dspring-boot.run.jvmArguments</code> . I used <code>-Dspring-boot.run.jvmArguments=-Dspring.profiles.include=MASTER</code> but it still fails..</strong></p>