Refactoring : Change Spring configuration. Use of annotations.