Put annotations and edit root-context.xml to autowire beans.