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