Example of automatically defining dependencies using autowiring for article
Java-Based Configuration of Spring Dependency Injection
.