title: Unsatisfied dependency expressed through constructor
body: <p>I have a logging configuration class , from there am injecting a logging filter class to the application.I need to pass 2 string arguments to the logging filter class constructor.But its failing with error </p>
  
  <pre><code>  "message" : "Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'LoggingFilter' defined in file \LoggingFilter.class]: Unsatisfied dependency expressed through constructor 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>Logging Configuration class</p>
  
  <pre><code>    @Configuration
  public class LoggingConfiguration {
  
      @Value("${operation.name}")
      private String operationName;
  
      @Value("${source.name.ui}")
      private String sourceName;
  
      @Bean
      public LoggingFilter getLoggingFilter() {
          return new LoggingFilter (operationName,sourceName);
      }
  }
  </code></pre>
  
  <p>This is my logging Filter class</p>
  
  <pre><code> @Component
  @Order(Ordered.HIGHEST_PRECEDENCE)
  public class LoggingFilter implements Filter {
  
      private String operationName;
      private String source;
  
  
      public LoggingFilter(String operationName,String source) {
          this.operationName = operationName;
          this.source = source;
      }
      }
  </code></pre>
  
  <p>How can i pass these variables into the filter class ?</p>