title: Spring find 2 candidates, but there is only one
body: <p>I'm trying upgrade a JHipster project, however I found the following issue:</p>
  
  <pre><code>Description:
  Parameter 0 of constructor in com.cervaki.config.AsyncConfiguration required a single bean, but 2 were found:
  - jhipster-io.github.jhipster.config.JHipsterProperties: defined in null
  - io.github.jhipster.config.JHipsterProperties: defined in null
  Action:
  Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
  </code></pre>
  
  <p>What I understood is that spring can't inject the correct bean because there are two candidates, but I only have the io.github.jhipster.config.JHipsterProperties implementation:</p>
  
  <pre><code>package com.cervaki.config;
  
  import io.github.jhipster.async.ExceptionHandlingAsyncTaskExecutor;
  import io.github.jhipster.config.JHipsterProperties;
  
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
  import org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.scheduling.annotation.*;
  import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
  
  import java.util.concurrent.Executor;
  
  @Configuration
  @EnableAsync
  @EnableScheduling
  public class AsyncConfiguration implements AsyncConfigurer {
  
      private final Logger log = LoggerFactory.getLogger(AsyncConfiguration.class);
  
      private final JHipsterProperties jHipsterProperties;
  
      public AsyncConfiguration(JHipsterProperties jHipsterProperties) {
          this.jHipsterProperties = jHipsterProperties;
      }
  
      @Override
      @Bean(name = "taskExecutor")
      public Executor getAsyncExecutor() {
          log.debug("Creating Async Task Executor");
          ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
          executor.setCorePoolSize(jHipsterProperties.getAsync().getCorePoolSize());
          executor.setMaxPoolSize(jHipsterProperties.getAsync().getMaxPoolSize());
          executor.setQueueCapacity(jHipsterProperties.getAsync().getQueueCapacity());
          executor.setThreadNamePrefix("cervaki-Executor-");
          return new ExceptionHandlingAsyncTaskExecutor(executor);
      }
  
      @Override
      public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
          return new SimpleAsyncUncaughtExceptionHandler();
      }
  }
  </code></pre>
  
  <p>You can download the pom.xml <a href="https://www.dropbox.com/s/lpyfcqhz9peb8d9/pom.xml?dl=0" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I did a search in the entire code and libs to find the jhipster-io.github.jhipster.config.JHipsterProperties file, however I didn't find anything.
  What can I do to solve this problem? </p>