title: Spring @Component vs @Configuration for basic configuration class
body: <p>I have some services that need configuration, thus these services is associated to a configuration class.</p>
  
  <p>for example:</p>
  
  <pre><code>class ExampleService {
      @Autowired
      ExampleConfiguration conf;
  
      ...
  }
  
  class ExampleConfiguration {
      private String exampleProperty;
  
      public void setExampleProperty(String exampleProperty) {
          this.exampleProperty = exampleProperty;
      }
  
      public String getExampleProperty() {
          return exampleProperty;
      }
  }
  </code></pre>
  
  <p>So does ExampleConfiguration must be declared as a @Component or @Configuration (or another annotation :))? And <strong>this class does not define any bean</strong>, it's just a basic configuration.</p>