title: @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
body: <p>I'm upgrading spring form 4.3.3 to 5.2.7 and I'm having this exception:</p>
  <p><strong>Exception:</strong></p>
  <pre><code>Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'MyBean' defined in com.test: Unsatisfied dependency expressed through method 'MyBean' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'java.lang.String' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} 
  </code></pre>
  <p><strong>code :</strong></p>
  <pre><code>@Bean
  @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
  @SuppressWarnings({ &quot;unchecked&quot; })
  public MyBean MyBean(String url,
          String user, String password, String id) {
      return MyBean(url, user, password, id,
              new HashMap&lt;String, String&gt;(),false); 
  }
  </code></pre>
  <blockquote>
  <p>PS 1: I'm using context.getBean with args to init my bean</p>
  </blockquote>
  <blockquote>
  <p>PS 2: I'm facing this problem at the startup of the application even though im not using the bean at the startup ( I'm using @Scope(&quot;prototype&quot;) to init the bean whenever it's called)</p>
  </blockquote>
  <blockquote>
  <p>PS 3: I didn't have the problem with spring 4.3.3</p>
  </blockquote>