Example of automatically defining beans using component scanning for article Java-Based Configuration of Spring Dependency Injection.