Added spring context component-scan to configuration.

This causes the beans to be instantiated from the Java classes, and will lead
to error when we have two beans trying to match a specified interface contract.